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

Method Dialect

pkg/sql/parser/parser.go:211–216  ·  view source on GitHub ↗

Dialect returns the SQL dialect configured for this parser. Returns "postgresql" if no dialect was explicitly set.

()

Source from the content-addressed store, hash-verified

209// Dialect returns the SQL dialect configured for this parser.
210// Returns "postgresql" if no dialect was explicitly set.
211func (p *Parser) Dialect() string {
212 if p.dialect == "" {
213 return "postgresql"
214 }
215 return p.dialect
216}
217
218// Parser is a recursive-descent SQL parser that converts a token stream into an
219// Abstract Syntax Tree (AST).

Callers 4

TestTokenizerWithDialectFunction · 0.45
TestTokenizerSetDialectFunction · 0.45

Calls

no outgoing calls

Tested by 4

TestTokenizerWithDialectFunction · 0.36
TestTokenizerSetDialectFunction · 0.36