Versions in this module Expand all Collapse all v0 v0.1.0 Mar 21, 2024 Changes in this version + const License + var AvailableDrivers = `Available Drivers:` + var Banner = `the universal command-line interface for SQL databases` + var Command = func() string + var CommandLower = func() string + var CommandName = `usql` + var CommandUpper = func() string + var CommandVersion = `0.0.0-dev` + var ConfirmPassword = `Confirm password: ` + var ConnInfo = `Connected with driver %s (%s)` + var Copyright = CommandName + ", " + Banner + ".\n\n" + License + var CouldNotSetVariable = `could not set variable %q` + var EnterPassword = `Enter password: ` + var EnterPreviousPassword = `Enter previous password: ` + var ErrCannotIncludeDirectories = errors.New("cannot include directories") + var ErrDriverNotAvailable = errors.New("driver not available") + var ErrInvalidFormatBorderLineStyle = errors.New(`\pset: allowed Unicode border line styles are single, double`) + var ErrInvalidFormatExpandedType = errors.New(`\pset: allowed expanded values are on, off, auto`) + var ErrInvalidFormatLineStyle = errors.New(`\pset: allowed line styles are ascii, old-ascii, unicode`) + var ErrInvalidFormatOption = errors.New("invalid format option") + var ErrInvalidFormatPagerType = errors.New(`\pset: allowed pager values are on, off, always`) + var ErrInvalidFormatType = errors.New(...) + var ErrInvalidIdentifier = errors.New("invalid identifier") + var ErrInvalidIsolationLevel = errors.New("invalid isolation level") + var ErrInvalidQuotedString = errors.New(`invalid quoted string`) + var ErrInvalidType = errors.New("invalid -TYPE: TYPE must be password, string, int, uint, float, or bool") + var ErrInvalidValue = errors.New("invalid value") + var ErrInvalidWatchDuration = errors.New("invalid watch duration") + var ErrMissingDSN = errors.New("missing dsn") + var ErrMissingRequiredArgument = errors.New("missing required argument") + var ErrNoEditorDefined = errors.New("no editor defined") + var ErrNoPreviousTransactionExists = errors.New("no previous transaction exists") + var ErrNoShellAvailable = errors.New("no SHELL available") + var ErrNoSuchFileOrDirectory = errors.New("no such file or directory") + var ErrNotConnected = errors.New("not connected") + var ErrNotInteractive = errors.New("not interactive") + var ErrNotSupported = errors.New("not supported") + var ErrPasswordAttemptsExhausted = errors.New("password attempts exhausted") + var ErrPasswordNotSupportedByDriver = errors.New(`\password not supported by driver`) + var ErrPreviousTransactionExists = errors.New("previous transaction exists") + var ErrSingleTransactionCannotBeUsedWithInteractiveMode = errors.New("--single-transaction cannot be used with interactive mode") + var ErrTooManyRows = errors.New("too many rows") + var ErrUnableToNormalizeURL = errors.New("unable to normalize URL") + var ErrUnknownCommand = errors.New("unknown command") + var ErrUnknownFileType = errors.New("unknown file type") + var ErrUnterminatedQuotedString = errors.New("unterminated quoted string") + var ErrWrongNumberOfArguments = errors.New("wrong number of arguments") + var ExitPrefix = `exit` + var ExtraArgumentIgnored = `\%s: extra argument %q ignored` + var FormatFieldInvalid = `unrecognized value %q for "%s"` + var FormatFieldInvalidValue = `unrecognized value %q for "%s": %s expected` + var FormatFieldNameSetMap = map[string]string + var FormatFieldNameUnsetMap = map[string]string + var HelpBanner = `You are using ` + CommandName + ", " + Banner + `.` + var HelpCommandPrefix = `Type: ` + var HelpCommands = [][]string + var HelpDesc string + var HelpDescShort = `Use \? for help or press control-C to clear the input buffer.` + var HelpPrefix = `help` + var InvalidCommand = `Invalid command \%s. Try \? for help.` + var InvalidOption = `invalid option %q` + var InvalidValue = `invalid -%s value %q: %s` + var Logo image.Image + var LogoPng []byte + var MissingRequiredArg = `\%s: missing required argument` + var NewPassword = `Enter new password: ` + var NotConnected = `(not connected)` + var NotSupportedByDriver = `%s not supported by %s driver` + var NotificationPayload = `with payload %q ` + var NotificationReceived = `Asynchronous notification %q %sreceived from server process with PID %d.` + var PassfileName = CommandName + `pass` + var PasswordChangeFailed = `\password for %q failed: %v` + var PasswordsDoNotMatch = `Passwords do not match, trying again ...` + var QueryBufferEmpty = `Query buffer is empty.` + var QueryBufferReset = `Query buffer reset (cleared).` + var QuitDesc = `Use \q to quit.` + var QuitPrefix = `quit` + var RelationNotFound = `Did not find any relation named "%s".` + var RowCount = `(%d rows)` + var TimingDesc = `Time: %0.3f ms` + var TimingSet = `Timing is %s.` + var UnknownFormatFieldName = `unknown option: %s` + var UnknownShortAlias = `(unk)` + var UsageTemplate = func() string + var WelcomeDesc = `Type "` + HelpPrefix + `" for help.`