package
0.8.2
Repository: https://github.com/strangesast/go-sqlcmd.git
Documentation: pkg.go.dev

# Functions

No description provided by the author
InitializeVariables initializes variables with default values.
InvalidCommandError creates a SQLCmdCommandError.
InvalidFileError indicates a file could not be opened.
New creates a new Sqlcmd instance.
NewBatch creates a Batch which converts runes provided by reader into SQL batches.
NewSQLCmdDefaultFormatter returns a Formatter that mimics the original ODBC-based sqlcmd formatter.
ParseValue returns the string to use as the variable value If the string contains a space or a quote, it must be delimited by quotes and literal quotes within the value must be escaped by another quote "this has a quote "" in it" is valid "this has a quote" in it" is not valid.
ReadOnlyVariable indicates the user tried to set a value to a read-only variable.
UndefinedVariable indicates the user tried to reference an undefined variable.
ValidIdentifier determines if a given string can be used as a variable name.

# Constants

ControlIgnore preserves control characters in the output.
ControlRemove removes control characters from the output.
ControlReplace replaces control characters with spaces, 1 space per character.
ControlReplaceConsecutive replaces multiple consecutive control characters with a single space.
ErrorPrefix is the prefix for all sqlcmd-generated errors.
No description provided by the author
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
SqlcmdEol is the end-of-line marker for sqlcmd output.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
Built-in scripting variables.
No description provided by the author
WarningPrefix is the prefix for all sqlcmd-generated warnings.

# Variables

ErrCtrlC indicates execution was ended by ctrl-c or ctrl-break.
ErrExitRequested tells the hosting application to exit immediately.
ErrNeedPassword indicates the user should provide a password to enable the connection.
InvalidServerName indicates the SQLCMDSERVER variable has an incorrect format.

# Structs

ArgumentError is related to command line switch validation not handled by kong.
Batch provides the query text to run.
Command defines a sqlcmd action which can be intermixed with the SQL batch Commands for sqlcmd are defined at https://docs.microsoft.com/sql/tools/sqlcmd-utility#sqlcmd-commands.
CommandError indicates syntax errors for specific sqlcmd commands.
ConnectSettings specifies the settings for connections.
Sqlcmd is the core processor for text lines.
VariableError is an error about scripting variables.

# Interfaces

Console defines methods used for console input and output.
Formatter defines methods to process query output.

# Type aliases

Commands is the set of sqlcmd command implementations.
ControlCharacterBehavior specifies the text handling required for control characters in the output.
Variables provides set and get of sqlcmd scripting variables.