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

Struct Compiler

internal/compiler/engine.go:20–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18)
19
20type Compiler struct {
21 conf config.SQL
22 combo config.CombinedSettings
23 catalog *catalog.Catalog
24 parser Parser
25 result *Result
26 analyzer analyzer.Analyzer
27 client dbmanager.Client
28 selector selector
29
30 schema []string
31
32 // databaseOnlyMode indicates that the compiler should use database-only analysis
33 // and skip building the internal catalog from schema files (analyzer.database: only)
34 databaseOnlyMode bool
35 // expander is used to expand SELECT * and RETURNING * in database-only mode
36 expander *expander.Expander
37}
38
39func NewCompiler(conf config.SQL, combo config.CombinedSettings, parserOpts opts.Parser) (*Compiler, error) {
40 c := &Compiler{conf: conf, combo: combo}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected