localizer

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 5, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseContextCommand          = "sqlcmd config use-context mssql"
	PasswordEnvVar             = "SQLCMD_PASSWORD"
	PasswordEnvVar2            = "SQLCMDPASSWORD"
	EndpointFlag               = "--endpoint"
	FeedbackUrl                = "https://aka.ms/sqlcmd-feedback"
	PasswordEncryptFlag        = "--password-encryption"
	AuthTypeFlag               = "--auth-type"
	ModernAuthTypeBasic        = "basic"
	ModernAuthTypeOther        = "other"
	UserNameFlag               = "--username"
	NameFlag                   = "--name"
	GetContextCommand          = "sqlcmd config get-contexts"
	GetEndpointsCommand        = "sqlcmd config get-endpoints"
	GetUsersCommand            = "sqlcmd config get-users"
	RunQueryExample            = "sqlcmd query \"SELECT @@SERVERNAME\""
	UninstallCommand           = "sqlcmd uninstall"
	AcceptEulaFlag             = "--accept-eula"
	AcceptEulaEnvVar           = "SQLCMD_ACCEPT_EULA"
	PodmanPsCommand            = "podman ps"
	DockerPsCommand            = "docker ps"
	HelpFlag                   = "--help"
	QueryAndExitFlag           = "-Q"
	QueryFlag                  = "-q"
	DbNameVar                  = "SQLCMDDBNAME"
	BatchTerminatorGo          = "GO"
	ConnStrPattern             = "[[tcp:]|[lpc:]|[np:]]server[\\instance_name][,port]"
	ServerEnvVar               = "SQLCMDSERVER"
	InsertKeyword              = "INSERT"
	PacketSizeVar              = "SQLCMDPACKETSIZE"
	LoginTimeOutVar            = "SQLCMDLOGINTIMEOUT"
	WorkstationVar             = "SQLCMDWORKSTATION"
	ApplicationIntentFlagShort = "-K"
	DosErrorLevel              = "DOS ERRORLEVEL"
	StdoutName                 = "stdout"
	ColSeparatorVar            = "SQLCMDCOLSEP"
	ErrorLevel                 = "ERRORLEVEL"
	AppIntentValues            = `"readonly"`
	FormatValues               = "\"horiz\",\"horizontal\",\"vert\",\"vertical\""
	ErrToStderrValues          = "\"-1\",\"0\",\"1\""
)

Variables

View Source
var Translator *message.Printer

Functions

func Errorf

func Errorf(format string, a ...any) error

Errorf() is wrapper function to create localized errors

func ProductBanner added in v1.6.0

func ProductBanner() string

ProductBanner() returns the localized product banner string

func Sprintf

func Sprintf(key message.Reference, args ...interface{}) string

Sprintf() is wrapper function to create localized string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL