Module ast

Module ast 

Source
Expand description

SQL Abstract Syntax Tree

Represents parsed SQL statements as a tree structure.

Structs§

AlterTableStmt
ALTER TABLE statement
Assignment
Assignment: column = expr
BeginStmt
BEGIN statement
ColumnDef
Column definition
ColumnRef
Column reference
CreateIndexStmt
CREATE INDEX statement
CreateTableStmt
CREATE TABLE statement
DeleteStmt
DELETE statement
DropIndexStmt
DROP INDEX statement
DropTableStmt
DROP TABLE statement
FromClause
FROM clause
FunctionCall
Function call
IndexColumn
InsertStmt
INSERT statement
ObjectName
Object name (potentially qualified: schema.table)
OnConflict
ON CONFLICT clause
OrderByItem
ORDER BY item
SelectStmt
SELECT statement
TableOption
Table options (ENGINE, CHARSET, etc.)
UpdateStmt
UPDATE statement
WindowFrame
WindowSpec
Window specification for window functions

Enums§

AlterColumnOp
AlterTableOp
BinaryOperator
Binary operators
ColumnConstraint
Column constraints
ConflictAction
ConflictTarget
DataType
SQL Data types
Expr
Expression
IndexType
InsertSource
Source of INSERT data
IsolationLevel
JoinCondition
Join condition
JoinType
Join types
Literal
Literal values
ReferentialAction
SelectItem
Items in SELECT clause
SetOp
Set operations (UNION, INTERSECT, EXCEPT)
Statement
Top-level SQL statement
TableConstraint
Table-level constraints
TableRef
Table reference in FROM clause
UnaryOperator
Unary operators
VectorMetric
Vector distance metrics (SochDB extension)
WindowFrameBound
WindowFrameKind