Skip to main content

Module ast

Module ast 

Source
Expand description

The crabgresql AST for the SP2 slice.

Structs§

ColumnDef
CopyStmt
Cte
FuncCall
SP27: a parsed function call. name is lowercased by the lexer.
HashShardingSpec
NonGoalRefusalSpec
One bounded PostgreSQL 18 syntax representative for an architectural refusal.
OrderItem
QueryExpr
A complete row-producing SQL query expression. The body may be a lone SELECT, a lone VALUES list, or a set-operation tree. The tail applies to the complete query expression.
SelectStmt
SequenceOptions
ValuesStmt
SP39: a VALUES row constructor list. Every row is non-empty; cross-row arity is checked during executor analysis so it gets PostgreSQL’s analysis SQLSTATE.
WithClause

Enums§

AlterTableRename
BinaryOp
ColumnConstraint
CopyFormat
Expr
FuncArgs
SP27: a function call’s argument list. Star is the f(*) form (only count(*) is meaningful); Exprs is a (possibly empty) positional list.
ImportSelector
The optional table-filter for IMPORT FOREIGN SCHEMA.
IndexPlacement
IsolationLevel
Transaction isolation levels supported by SP4.
JoinConstraint
JoinKind
NonGoalCommand
Architectural non-goal commands tracked by the PostgreSQL compatibility matrix.
QueryBody
SP39: query bodies that may appear as set-operation leaves or derived tables.
RefusalCommand
Stable, typed metadata for commands that parse normally and then fail clear.
ResetTarget
RowLockStrength
SelectItem
SerialKind
SetExpr
SP38: a node in the set-operation tree. A Query leaf is one query block; a SetOp combines two sub-trees. INTERSECT binds tighter than UNION/EXCEPT; UNION/EXCEPT are left-associative (the parser encodes this in the tree shape).
SetOp
SetValue
SP37: the right-hand side of a SET (or the value form of SET TIME ZONE). Default is SET ... = DEFAULT / SET TIME ZONE { DEFAULT | LOCAL } (resets the parameter to its built-in default); Value is a literal/identifier value.
ShardingSpec
Statement
TableConstraint
TableExpr
SP33: one entry in the FROM clause — a base table, a derived table (subquery), or a join of two table-exprs. The comma form (FROM a, b) is a Vec<TableExpr> with len > 1 (implicit cross join).
UnaryOp

Constants§

COPY_FROM_STDIN_SENTINEL
NON_GOAL_REFUSALS

Type Aliases§

OptionList
A key-value option list for FDW DDL: OPTIONS (key 'value', …).