-
Notifications
You must be signed in to change notification settings - Fork 79
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Summary
Add a --markdown flag to output query results as Markdown tables.
Use Case
- Copy/paste results directly into GitHub issues, PRs, or documentation
- Generate documentation from database queries
- Integration with documentation pipelines
Proposed Syntax
sqlcmd -S server -Q "SELECT * FROM users" --markdownExample Output
| id | name | email |
|----|------|-------|
| 1 | Alice | alice@example.com |
| 2 | Bob | bob@example.com |
Implementation Notes
- Could leverage existing formatter infrastructure in
pkg/sqlcmd/formatter.go - Similar approach to how XML output is handled
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request