Documentation
¶
Index ¶
- func AutocommitDMLModeStrings() []string
- func DisplayModeStrings() []string
- func ExplainFormatStrings() []string
- func ParseModeStrings() []string
- func StreamingModeStrings() []string
- func StyledModeStrings() []string
- func WidthStrategyStrings() []string
- type AutocommitDMLMode
- type DisplayMode
- type ExplainFormat
- type ParseMode
- type StreamingMode
- type StyledMode
- type WidthStrategy
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutocommitDMLModeStrings ¶
func AutocommitDMLModeStrings() []string
AutocommitDMLModeStrings returns a slice of all String values of the enum
func DisplayModeStrings ¶
func DisplayModeStrings() []string
DisplayModeStrings returns a slice of all String values of the enum
func ExplainFormatStrings ¶
func ExplainFormatStrings() []string
ExplainFormatStrings returns a slice of all String values of the enum
func ParseModeStrings ¶
func ParseModeStrings() []string
ParseModeStrings returns a slice of all String values of the enum
func StreamingModeStrings ¶
func StreamingModeStrings() []string
StreamingModeStrings returns a slice of all String values of the enum
func StyledModeStrings ¶ added in v0.28.0
func StyledModeStrings() []string
StyledModeStrings returns a slice of all String values of the enum
func WidthStrategyStrings ¶ added in v0.29.0
func WidthStrategyStrings() []string
WidthStrategyStrings returns a slice of all String values of the enum
Types ¶
type AutocommitDMLMode ¶
type AutocommitDMLMode int
AutocommitDMLMode represents the DML autocommit behavior
const ( AutocommitDMLModeTransactional AutocommitDMLMode = iota AutocommitDMLModePartitionedNonAtomic )
func AutocommitDMLModeString ¶
func AutocommitDMLModeString(s string) (AutocommitDMLMode, error)
AutocommitDMLModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func AutocommitDMLModeValues ¶
func AutocommitDMLModeValues() []AutocommitDMLMode
AutocommitDMLModeValues returns all values of the enum
func (AutocommitDMLMode) IsAAutocommitDMLMode ¶
func (i AutocommitDMLMode) IsAAutocommitDMLMode() bool
IsAAutocommitDMLMode returns "true" if the value is listed in the enum definition. "false" otherwise
func (AutocommitDMLMode) String ¶
func (i AutocommitDMLMode) String() string
type DisplayMode ¶
type DisplayMode int
DisplayMode represents different output display formats
const ( DisplayModeUnspecified DisplayMode = iota DisplayModeTable DisplayModeTableComment DisplayModeTableDetailComment DisplayModeVertical DisplayModeTab DisplayModeHTML DisplayModeXML DisplayModeCSV DisplayModeSQLInsert DisplayModeSQLInsertOrIgnore DisplayModeSQLInsertOrUpdate )
func DisplayModeString ¶
func DisplayModeString(s string) (DisplayMode, error)
DisplayModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func DisplayModeValues ¶
func DisplayModeValues() []DisplayMode
DisplayModeValues returns all values of the enum
func (DisplayMode) IsADisplayMode ¶
func (i DisplayMode) IsADisplayMode() bool
IsADisplayMode returns "true" if the value is listed in the enum definition. "false" otherwise
func (DisplayMode) IsSQLExport ¶ added in v0.23.0
func (d DisplayMode) IsSQLExport() bool
IsSQLExport returns true if the display mode is one of the SQL export formats
func (DisplayMode) String ¶
func (i DisplayMode) String() string
type ExplainFormat ¶
type ExplainFormat int
ExplainFormat represents EXPLAIN output format
const ( ExplainFormatUnspecified ExplainFormat = iota ExplainFormatCurrent ExplainFormatTraditional ExplainFormatCompact )
func ExplainFormatString ¶
func ExplainFormatString(s string) (ExplainFormat, error)
ExplainFormatString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ExplainFormatValues ¶
func ExplainFormatValues() []ExplainFormat
ExplainFormatValues returns all values of the enum
func (ExplainFormat) IsAExplainFormat ¶
func (i ExplainFormat) IsAExplainFormat() bool
IsAExplainFormat returns "true" if the value is listed in the enum definition. "false" otherwise
func (ExplainFormat) String ¶
func (i ExplainFormat) String() string
type ParseMode ¶
type ParseMode int
ParseMode represents statement parsing behavior
func ParseModeString ¶
ParseModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ParseModeValues ¶
func ParseModeValues() []ParseMode
ParseModeValues returns all values of the enum
func (ParseMode) IsAParseMode ¶
IsAParseMode returns "true" if the value is listed in the enum definition. "false" otherwise
type StreamingMode ¶
type StreamingMode int
StreamingMode represents the streaming output mode.
const ( StreamingModeAuto StreamingMode = iota // Smart default based on format StreamingModeTrue // Always stream StreamingModeFalse // Never stream )
func StreamingModeString ¶
func StreamingModeString(s string) (StreamingMode, error)
StreamingModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func StreamingModeValues ¶
func StreamingModeValues() []StreamingMode
StreamingModeValues returns all values of the enum
func (StreamingMode) IsAStreamingMode ¶
func (i StreamingMode) IsAStreamingMode() bool
IsAStreamingMode returns "true" if the value is listed in the enum definition. "false" otherwise
func (StreamingMode) String ¶
func (i StreamingMode) String() string
type StyledMode ¶ added in v0.28.0
type StyledMode int
StyledMode represents the ANSI styling mode for output.
const ( StyledModeAuto StyledMode = iota // Style if output is a TTY StyledModeTrue // Always use ANSI styling StyledModeFalse // Never use ANSI styling )
func StyledModeString ¶ added in v0.28.0
func StyledModeString(s string) (StyledMode, error)
StyledModeString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func StyledModeValues ¶ added in v0.28.0
func StyledModeValues() []StyledMode
StyledModeValues returns all values of the enum
func (StyledMode) IsAStyledMode ¶ added in v0.28.0
func (i StyledMode) IsAStyledMode() bool
IsAStyledMode returns "true" if the value is listed in the enum definition. "false" otherwise
func (StyledMode) String ¶ added in v0.28.0
func (i StyledMode) String() string
type WidthStrategy ¶ added in v0.29.0
type WidthStrategy int
WidthStrategy represents the column width allocation algorithm.
const ( WidthStrategyGreedyFrequency WidthStrategy = iota // Default: frequency-based greedy expansion WidthStrategyProportional // Proportional allocation based on natural width WidthStrategyMarginalCost // Marginal cost minimization via max-heap )
func WidthStrategyString ¶ added in v0.29.0
func WidthStrategyString(s string) (WidthStrategy, error)
WidthStrategyString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func WidthStrategyValues ¶ added in v0.29.0
func WidthStrategyValues() []WidthStrategy
WidthStrategyValues returns all values of the enum
func (WidthStrategy) IsAWidthStrategy ¶ added in v0.29.0
func (i WidthStrategy) IsAWidthStrategy() bool
IsAWidthStrategy returns "true" if the value is listed in the enum definition. "false" otherwise
func (WidthStrategy) String ¶ added in v0.29.0
func (i WidthStrategy) String() string