| 18 | ) |
| 19 | |
| 20 | type 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 | |
| 39 | func NewCompiler(conf config.SQL, combo config.CombinedSettings, parserOpts opts.Parser) (*Compiler, error) { |
| 40 | c := &Compiler{conf: conf, combo: combo} |
nothing calls this directly
no outgoing calls
no test coverage detected