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

Function New

internal/engine/sqlite/analyzer/analyze.go:30–36  ·  view source on GitHub ↗
(db config.Database)

Source from the content-addressed store, hash-verified

28}
29
30func New(db config.Database) *Analyzer {
31 return &Analyzer{
32 db: db,
33 dbg: opts.DebugFromEnv(),
34 replacer: shfmt.NewReplacer(nil),
35 }
36}
37
38func (a *Analyzer) Analyze(ctx context.Context, n ast.Node, query string, migrations []string, ps *named.ParamSet) (*core.Analysis, error) {
39 a.mu.Lock()

Callers 2

TestAnalyzer_AnalyzeFunction · 0.70

Calls 2

DebugFromEnvFunction · 0.92
NewReplacerFunction · 0.92

Tested by 2

TestAnalyzer_AnalyzeFunction · 0.56