opts

package
v0.0.0-...-3266b2f Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 2 Imported by: 0

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

func DebugFromString(val string) Debug

type Experiment

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

func ExperimentFromEnv() Experiment

ExperimentFromEnv returns an Experiment initialized from the SQLCEXPERIMENT environment variable.

func ExperimentFromString

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

func (e Experiment) Enabled() []string

Enabled returns a slice of all enabled experiment names.

func (Experiment) String

func (e Experiment) String() string

String returns a comma-separated list of enabled experiments.

type Parser

type Parser struct {
	Debug      Debug
	Experiment Experiment
}

Jump to

Keyboard shortcuts

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