feat: add -j flag for raw error messages by dlevy-msft-sql · Pull Request #624 · microsoft/go-sqlcmd
Implements the -j flag from ODBC sqlcmd that prints only the error message without the Msg/Level/State/Server/Line header prefix. Changes: - Add RawErrors field to SQLCmdArguments struct - Add -j/--raw-errors flag in cmd/sqlcmd/sqlcmd.go - Add rawErrors parameter to NewSQLCmdDefaultFormatter - Modify AddError in format.go to skip header when rawErrors is true - Add command line tests for -j flag - Add unit test TestFormatterRawErrors - Update README.md with documentation
dlevy-msft-sql
changed the title
Add -j (--raw-errors) flag for printing raw error messages
feat: add -j flag for raw error messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters