Skip to main content

Module parser

Module parser 

Source
Expand description

SQL parser: converts SQL strings into our internal AST.

Structs§

ColumnSpec
CreateIndexStmt
CreateTableStmt
DeleteStmt
DropIndexStmt
DropTableStmt
InsertStmt
JoinClause
OrderByItem
SelectStmt
TableRef
UpdateStmt

Enums§

BinOp
Expr
JoinType
SelectColumn
Statement
UnaryOp

Functions§

bind_params
Replace all Expr::Parameter(n) with Expr::Literal(params[n-1]).
count_params
Returns the number of distinct parameters in a statement (max $N found).
parse_sql