MCPcopy
hub / github.com/sqlc-dev/sqlc / ReadConfig

Method ReadConfig

internal/cmd/options.go:20–29  ·  view source on GitHub ↗
(dir, filename string)

Source from the content-addressed store, hash-verified

18}
19
20func (o *Options) ReadConfig(dir, filename string) (string, *config.Config, error) {
21 path, conf, err := readConfig(o.Stderr, dir, filename)
22 if err != nil {
23 return path, conf, err
24 }
25 if o.MutateConfig != nil {
26 o.MutateConfig(conf)
27 }
28 return path, conf, nil
29}

Callers 3

ProcessFunction · 0.80
GenerateFunction · 0.80
CreateDBFunction · 0.80

Calls 1

readConfigFunction · 0.85

Tested by

no test coverage detected