MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / NewConfig

Function NewConfig

client/config.go:54–56  ·  view source on GitHub ↗

NewConfig creates a new config with default value.

()

Source from the content-addressed store, hash-verified

52
53// NewConfig creates a new config with default value.
54func NewConfig() *Config {
55 return &Config{UseLeader: true}
56}
57
58// FormatDSN formats the given Config into a DSN string which can be passed to the driver.
59func (cfg *Config) FormatDSN() string {

Callers 6

DropMethod · 0.92
getConnMethod · 0.92
UseDBMethod · 0.92
NewDatabaseFunction · 0.92
CreateFunction · 0.85
ParseDSNFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected