MCPcopy Create free account

hub / github.com/benbjohnson/sql-parser / functions

Functions17 in github.com/benbjohnson/sql-parser

↓ 5 callersMethodread
read reads the next rune from the buffered reader. Returns the rune(0) if an error occurs (or io.EOF is returned).
scanner.go:104
↓ 5 callersMethodscanIgnoreWhitespace
scanIgnoreWhitespace scans the next non-whitespace token.
parser.go:89
↓ 4 callersMethodunread
unread places the previously read rune back on the reader.
scanner.go:113
↓ 2 callersMethodScan
Scan returns the next token and literal value.
scanner.go:21
↓ 2 callersFunctionisLetter
isLetter returns true if the rune is a letter.
scanner.go:119
↓ 2 callersFunctionisWhitespace
isWhitespace returns true if the rune is a space, tab, or newline.
scanner.go:116
↓ 2 callersMethodscan
scan returns the next token from the underlying scanner. If a token has been unscanned then read that instead.
parser.go:72
↓ 1 callersFunctionNewScanner
NewScanner returns a new instance of Scanner.
scanner.go:16
↓ 1 callersMethodParse
Parse parses a SQL SELECT statement.
parser.go:30
↓ 1 callersFunctionerrstring
errstring returns the string representation of an error.
parser_test.go:63
↓ 1 callersFunctionisDigit
isDigit returns true if the rune is a digit.
scanner.go:122
↓ 1 callersMethodscanIdent
scanIdent consumes the current rune and all contiguous ident runes.
scanner.go:72
↓ 1 callersMethodscanWhitespace
scanWhitespace consumes the current rune and all contiguous whitespace.
scanner.go:50
↓ 1 callersMethodunscan
unscan pushes the previously read token back onto the buffer.
parser.go:98
FunctionNewParser
NewParser returns a new instance of Parser.
parser.go:25
FunctionTestParser_ParseStatement
Ensure the parser can parse strings into Statement ASTs.
parser_test.go:12
FunctionTestScanner_Scan
Ensure the scanner can scan tokens correctly.
scanner_test.go:11