Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetScreenWidthFlag ¶ added in v1.1.0
func SetScreenWidthFlag(args *SQLCmdArguments, rootCmd *cobra.Command)
Types ¶
type SQLCmdArguments ¶
type SQLCmdArguments struct { // Which batch terminator to use. Default is GO BatchTerminator string // Whether to trust the server certificate on an encrypted connection TrustServerCertificate bool DatabaseName string UseTrustedConnection bool UserName string // Files from which to read query text InputFile []string OutputFile string // First query to run in interactive mode InitialQuery string // Query to run then exit Query string Server string // Disable syscommands with a warning DisableCmdAndWarn bool // AuthenticationMethod is new for go-sqlcmd AuthenticationMethod string UseAad bool DisableVariableSubstitution bool Variables map[string]string PacketSize int LoginTimeout int WorkstationName string ApplicationIntent string EncryptConnection string DriverLoggingLevel int ExitOnError bool ErrorSeverityLevel uint8 ErrorLevel int Format string ErrorsToStderr int Headers int UnicodeOutputFile bool Version bool ColumnSeparator string ScreenWidth *int TrimSpaces bool MultiSubnetFailover bool Password string DedicatedAdminConnection bool // Keep Help at the end of the list Help bool }
SQLCmdArguments defines the command line arguments for sqlcmd The exhaustive list is at https://docs.microsoft.com/sql/tools/sqlcmd-utility?view=sql-server-ver15
func (*SQLCmdArguments) Validate ¶
func (a *SQLCmdArguments) Validate() error
Validate arguments for settings not described by Kong attributes
Click to show internal directories.
Click to hide internal directories.