MCPcopy Index your code
hub / github.com/sqlc-dev/sqlc / IsEnabled

Method IsEnabled

internal/config/config.go:134–139  ·  view source on GitHub ↗

IsEnabled returns true if the database analyzer should be used. Returns true for both `true` and `"only"` settings.

()

Source from the content-addressed store, hash-verified

132// IsEnabled returns true if the database analyzer should be used.
133// Returns true for both `true` and `"only"` settings.
134func (a AnalyzerDatabase) IsEnabled() bool {
135 if a.isOnly {
136 return true
137 }
138 return a.value == nil || *a.value
139}
140
141// IsOnly returns true if the analyzer is set to "only" mode.
142func (a AnalyzerDatabase) IsOnly() bool {

Callers 1

NewCompilerFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected