MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / WithDialect

Function WithDialect

pkg/sql/parser/parser.go:203–207  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

201// Supported values: "postgresql", "mysql", "sqlserver", "oracle", "sqlite", etc.
202// If not set, defaults to "postgresql" for backward compatibility.
203func 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.

Callers 13

BenchmarkMariaDB_MixedFunction · 0.92
parseTopSQLFunction · 0.92
ParseSQLWithDialectFunction · 0.92
validateFileMethod · 0.92
ValidateBytesWithDialectFunction · 0.85
ParseBytesWithDialectFunction · 0.85
parseSQLWithDialectFunction · 0.85

Calls

no outgoing calls