MCPcopy Create free account
hub / github.com/araddon/qlbridge / NewSqlLexer

Function NewSqlLexer

lex/dialect_sql.go:215–217  ·  view source on GitHub ↗

NewSqlLexer creates a new lexer for the input string using SqlDialect this is sql(ish) compatible parser.

(input string)

Source from the content-addressed store, hash-verified

213// NewSqlLexer creates a new lexer for the input string using SqlDialect
214// this is sql(ish) compatible parser.
215func NewSqlLexer(input string) *Lexer {
216 return NewLexer(input, SqlDialect)
217}
218
219// find any keyword that starts a source
220// FROM <name>

Callers 11

parseSqlResolverFunction · 0.92
ParseSqlStatementsFunction · 0.92
TestTokenFunction · 0.85
tokenFunction · 0.85
verifyIdentityFunction · 0.85
TestLexerFunction · 0.85
TestLexNumberFunction · 0.85
TestLexDurationFunction · 0.85
verifyTokensFunction · 0.85
verifyTokenTypesFunction · 0.85
lexTokensFunction · 0.85

Calls 1

NewLexerFunction · 0.85

Tested by 9

TestTokenFunction · 0.68
tokenFunction · 0.68
verifyIdentityFunction · 0.68
TestLexerFunction · 0.68
TestLexNumberFunction · 0.68
TestLexDurationFunction · 0.68
verifyTokensFunction · 0.68
verifyTokenTypesFunction · 0.68
lexTokensFunction · 0.68