Parse parses the sql and returns a list of statements.
(sql string)
| 107 | |
| 108 | // Parse parses the sql and returns a list of statements. |
| 109 | func (p *Parser) Parse(sql string) (Statements, error) { |
| 110 | return p.parseWithDepth(1, sql, defaultNakedIntType) |
| 111 | } |
| 112 | |
| 113 | // ParseWithInt parses a sql statement string and returns a list of |
| 114 | // Statements. The INT token will result in the specified TInt type. |