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

Method Validate

internal/cmd/cmd.go:163–170  ·  view source on GitHub ↗
(cfg *config.Config)

Source from the content-addressed store, hash-verified

161var ErrPluginProcessDisabled = errors.New("plugin: process-based plugins disabled via SQLCDEBUG=processplugins=0")
162
163func (e *Env) Validate(cfg *config.Config) error {
164 for _, plugin := range cfg.Plugins {
165 if plugin.Process != nil && !e.Debug.ProcessPlugins {
166 return ErrPluginProcessDisabled
167 }
168 }
169 return nil
170}
171
172func getConfigPath(stderr io.Writer, f *pflag.Flag) (string, string) {
173 if f != nil && f.Changed {

Callers 4

TestJsonSchemaFunction · 0.45
ProcessFunction · 0.45
GenerateFunction · 0.45
VetFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestJsonSchemaFunction · 0.36