gizmodel/sql/parsequery
The SQL parser: queries: WITH, set operations, SELECT, FROM, joins and pivots.
import * as Parsequery from "gizmodel/sql/parsequery";Methods
Parser.query
function Parser.query(self: mut Parser): SelectA full query: WITH, set operations, ORDER BY, LIMIT/OFFSET/FETCH.
Effects: fail, read, alloc.
Parser.withList
function Parser.withList(self: mut Parser): Vec<Cte>The CTEs after WITH.
Effects: fail, read, alloc.
Parser.items
function Parser.items(self: mut Parser): Vec<Item>Effects: fail, read, alloc.
Parser.orderList
function Parser.orderList(self: mut Parser): Vec<Order>Effects: fail, read, alloc.
Parser.fromList
function Parser.fromList(self: mut Parser): Vec<From>Effects: fail, read, alloc.
Parser.joined
function Parser.joined(self: mut Parser): FromEffects: fail, read, alloc.
Parser.pivotNext
function Parser.pivotNext(self: Parser): boolWhether PIVOT ( or UNPIVOT [INCLUDE | EXCLUDE NULLS] ( comes next.
Effects: fail.
Parser.exprRow
function Parser.exprRow(self: mut Parser): Vec<Expr>One expression or a parenthesized list of them (a row of an IN list).
Effects: fail, read, alloc.