go-sqlcmd
go-sqlcmd copied to clipboard
Add support for JSON/YAML/XML of query results
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)