WithDialect sets the SQL dialect for dialect-aware parsing. Supported values: "postgresql", "mysql", "sqlserver", "oracle", "sqlite", etc. If not set, defaults to "postgresql" for backward compatibility.
(dialect string)
| 201 | // Supported values: "postgresql", "mysql", "sqlserver", "oracle", "sqlite", etc. |
| 202 | // If not set, defaults to "postgresql" for backward compatibility. |
| 203 | func WithDialect(dialect string) ParserOption { |
| 204 | return func(p *Parser) { |
| 205 | p.dialect = dialect |
| 206 | } |
| 207 | } |
| 208 | |
| 209 | // Dialect returns the SQL dialect configured for this parser. |
| 210 | // Returns "postgresql" if no dialect was explicitly set. |
no outgoing calls