WithStrictMode enables strict parsing mode. In strict mode, the parser rejects empty statements (e.g., lone semicolons like ";;; SELECT 1 ;;;" will error instead of silently discarding empty statements between semicolons). By default, the parser operates in lenient mode where empty statements are s
()
| 192 | // By default, the parser operates in lenient mode where empty statements are |
| 193 | // silently ignored for backward compatibility. |
| 194 | func WithStrictMode() ParserOption { |
| 195 | return func(p *Parser) { |
| 196 | p.strict = true |
| 197 | } |
| 198 | } |
| 199 | |
| 200 | // WithDialect sets the SQL dialect for dialect-aware parsing. |
| 201 | // Supported values: "postgresql", "mysql", "sqlserver", "oracle", "sqlite", etc. |
no outgoing calls