servercfg

package
v0.54.7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ConfigHelp = "Supported fields in the config.yaml file, and their default values, " +
	"are as follows:\n\n" + DefaultServerConfig().String()

Functions

This section is empty.

Types

type DoltgresConfig

type DoltgresConfig struct {
	cfgdetails.DoltgresConfig
}

DoltgresConfig is the configuration file for Doltgres.

func ConfigFromYamlData

func ConfigFromYamlData(configFileData []byte) (*DoltgresConfig, error)

ConfigFromYamlData reads the configuration from the given file's bytes.

func DefaultServerConfig added in v0.9.0

func DefaultServerConfig() *DoltgresConfig

DefaultServerConfig creates a *DoltgresConfig that has all of the options set to their default values. Used when no config.yaml file is provided.

func ReadConfigFromYamlFile

func ReadConfigFromYamlFile(fs filesys.Filesys, configFilePath string) (*DoltgresConfig, error)

ReadConfigFromYamlFile reads the given file from the file system at the specified path.

func (*DoltgresConfig) Overrides added in v0.54.6

func (*DoltgresConfig) Overrides() sql.EngineOverrides

Overrides implements the interface doltservercfg.ServerConfig.

func (*DoltgresConfig) ToSqlServerConfig

func (cfg *DoltgresConfig) ToSqlServerConfig() doltservercfg.ServerConfig

ToSqlServerConfig returns this configuration struct as an implementation of the Dolt interface.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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