microsoft / microsoft/go-sqlcmd
Add support for JSON/YAML/XML of query results
Open
Nobody has claimed this yet.
enhancement
sqlcmd switch
- Dominant language
- Go
- Stars
- 595
- Forks
- 91
- Avg merge
- 9h 35m
- Merged PRs (30d)
- 1
Description
Enable:
sqlcmd -Q "select my_col from my_table" --output json
And the output to stdout is json/yaml/xml etc. encoding of the result set. (probably following the server side FOR XML AUTO / FOR JSON AUTO encoding strategy)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the sqlcmd -Q query path and inspect how query results are currently written to stdout. Determine the existing result-set output flow and the formats required by the issue, then verify that each requested JSON, YAML, and XML encoding is produced correctly for a query result.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, sql
- Domain
- cli, databases
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100