MCPcopy
hub / github.com/sqldef/sqldef / ParseGeneratorConfig

Function ParseGeneratorConfig

database/database.go:301–311  ·  view source on GitHub ↗
(configFile string, defaults GeneratorConfig)

Source from the content-addressed store, hash-verified

299}
300
301func ParseGeneratorConfig(configFile string, defaults GeneratorConfig) GeneratorConfig {
302 if configFile == "" {
303 return defaults
304 }
305
306 buf, err := os.ReadFile(configFile)
307 if err != nil {
308 log.Fatal(err)
309 }
310 return parseGeneratorConfigFromBytes(buf, defaults)
311}
312
313// MergeGeneratorConfig merges two configs, with the second one taking precedence
314func MergeGeneratorConfig(base, override GeneratorConfig) GeneratorConfig {

Callers 4

parseOptionsFunction · 0.92
parseOptionsFunction · 0.92
parseOptionsFunction · 0.92
parseOptionsFunction · 0.92

Calls 2

FatalMethod · 0.65

Tested by

no test coverage detected