enums

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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

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

const (
	ParseModeUnspecified ParseMode = iota
	ParseModeFallback
	ParseModeNoMemefish
	ParseModeMemefishOnly
)

func ParseModeString

func ParseModeString(s string) (ParseMode, error)

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

func (i ParseMode) IsAParseMode() bool

IsAParseMode returns "true" if the value is listed in the enum definition. "false" otherwise

func (ParseMode) String

func (i ParseMode) String() string

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

Jump to

Keyboard shortcuts

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