microsoft / microsoft/go-sqlcmd

Add support for JSON/YAML/XML of query results

Open
#151 1 comment 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.