New creates a new Expander with the given column getter, parser, and dialect.
(colGetter ColumnGetter, parser Parser, dialect format.Dialect)
| 31 | |
| 32 | // New creates a new Expander with the given column getter, parser, and dialect. |
| 33 | func New(colGetter ColumnGetter, parser Parser, dialect format.Dialect) *Expander { |
| 34 | return &Expander{ |
| 35 | colGetter: colGetter, |
| 36 | parser: parser, |
| 37 | dialect: dialect, |
| 38 | } |
| 39 | } |
| 40 | |
| 41 | // Expand takes a SQL query, and if it contains * in SELECT or RETURNING clause, |
| 42 | // expands it to use explicit column names. Returns the expanded query string. |
no outgoing calls