NewParser creates a new Parser with the given options
(out, err io.Writer, opts CLIParserOptions)
| 55 | |
| 56 | // NewParser creates a new Parser with the given options |
| 57 | func NewParser(out, err io.Writer, opts CLIParserOptions) *Parser { |
| 58 | return &Parser{ |
| 59 | Out: out, |
| 60 | Err: err, |
| 61 | Opts: opts, |
| 62 | } |
| 63 | } |
| 64 | |
| 65 | // Parse parses the given SQL input (file or direct SQL) |
| 66 | func (p *Parser) Parse(input string) (*ParserResult, error) { |
no outgoing calls