Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Debug ¶
type Debug struct {
DumpAST bool
DumpCatalog bool
Trace string
ProcessPlugins bool
OnlyManagedDatabases bool
DumpVetEnv bool
DumpExplain bool
}
func DebugFromEnv ¶
func DebugFromEnv() Debug
func DebugFromString ¶
type Experiment ¶ added in v1.31.0
type Experiment struct {
// AnalyzerV2 enables the database-only analyzer mode (analyzer.database: only)
// which uses the database for all type resolution instead of parsing schema files.
AnalyzerV2 bool
}
Experiment holds the state of all experimental features. Add new experiments as boolean fields to this struct.
func ExperimentFromEnv ¶ added in v1.31.0
func ExperimentFromEnv() Experiment
ExperimentFromEnv returns an Experiment initialized from the SQLCEXPERIMENT environment variable.
func ExperimentFromString ¶ added in v1.31.0
func ExperimentFromString(val string) Experiment
ExperimentFromString parses a comma-separated list of experiment names and returns an Experiment with the appropriate flags set.
Experiment names can be prefixed with "no" to explicitly disable them. Unknown experiment names are silently ignored.
func (Experiment) Enabled ¶ added in v1.31.0
func (e Experiment) Enabled() []string
Enabled returns a slice of all enabled experiment names.
func (Experiment) String ¶ added in v1.31.0
func (e Experiment) String() string
String returns a comma-separated list of enabled experiments.
type Parser ¶
type Parser struct {
Debug Debug
Experiment Experiment
}
Click to show internal directories.
Click to hide internal directories.