Parse parses the sql and returns a list of statements.
(sql string)
| 96 | |
| 97 | // Parse parses the sql and returns a list of statements. |
| 98 | func (p *Parser) Parse(sql string) (Statements, error) { |
| 99 | return p.parseWithDepth(1, sql, defaultNakedIntType) |
| 100 | } |
| 101 | |
| 102 | // ParseWithInt parses a sql statement string and returns a list of |
| 103 | // Statements. The INT token will result in the specified TInt type. |