Documentation
¶
Overview ¶
Package sqliteparser provides a lightweight parser for SQLite SQL statements, with particular focus on properly handling SQLite's unquoted literals like NULL.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractLiterals ¶
ExtractLiterals extracts all literals from an SQL statement.
func FormatLiterals ¶
FormatLiterals returns a string representation of the literals.
func IsNull ¶
func IsNull(expr ast.Expression) bool
IsNull checks if an expression is an SQLite NULL literal.
func ParseCondition ¶
func ParseCondition(sql string) ast.Expression
ParseCondition parses a WHERE condition from an SQL statement.
func ParseUpdateSetPairs ¶
ParseUpdateSetPairs parses the column-value pairs in an UPDATE statement.
Types ¶
This section is empty.
Directories
¶
Path | Synopsis |
---|---|
Package ast provides abstract syntax tree representations for SQLite SQL statements.
|
Package ast provides abstract syntax tree representations for SQLite SQL statements. |
Package lexer provides tokenization for SQLite SQL statements.
|
Package lexer provides tokenization for SQLite SQL statements. |
Package parser provides parsers for SQLite SQL statements.
|
Package parser provides parsers for SQLite SQL statements. |
Click to show internal directories.
Click to hide internal directories.