Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/benbjohnson/sql-parser
/ functions
Functions
17 in github.com/benbjohnson/sql-parser
⨍
Functions
17
◇
Types & classes
4
↓ 5 callers
Method
read
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 callers
Method
scanIgnoreWhitespace
scanIgnoreWhitespace scans the next non-whitespace token.
parser.go:89
↓ 4 callers
Method
unread
unread places the previously read rune back on the reader.
scanner.go:113
↓ 2 callers
Method
Scan
Scan returns the next token and literal value.
scanner.go:21
↓ 2 callers
Function
isLetter
isLetter returns true if the rune is a letter.
scanner.go:119
↓ 2 callers
Function
isWhitespace
isWhitespace returns true if the rune is a space, tab, or newline.
scanner.go:116
↓ 2 callers
Method
scan
scan returns the next token from the underlying scanner. If a token has been unscanned then read that instead.
parser.go:72
↓ 1 callers
Function
NewScanner
NewScanner returns a new instance of Scanner.
scanner.go:16
↓ 1 callers
Method
Parse
Parse parses a SQL SELECT statement.
parser.go:30
↓ 1 callers
Function
errstring
errstring returns the string representation of an error.
parser_test.go:63
↓ 1 callers
Function
isDigit
isDigit returns true if the rune is a digit.
scanner.go:122
↓ 1 callers
Method
scanIdent
scanIdent consumes the current rune and all contiguous ident runes.
scanner.go:72
↓ 1 callers
Method
scanWhitespace
scanWhitespace consumes the current rune and all contiguous whitespace.
scanner.go:50
↓ 1 callers
Method
unscan
unscan pushes the previously read token back onto the buffer.
parser.go:98
Function
NewParser
NewParser returns a new instance of Parser.
parser.go:25
Function
TestParser_ParseStatement
Ensure the parser can parse strings into Statement ASTs.
parser_test.go:12
Function
TestScanner_Scan
Ensure the scanner can scan tokens correctly.
scanner_test.go:11