Module ast
Source - ColumnDef
- SQL column definition
- ColumnOptionDef
- An optionally-named
ColumnOption: [ CONSTRAINT <name> ] <column-option>. - Function
- A function call
- Ident
- An identifier, decomposed into its value or character data and the quote style.
- ObjectName
- A name of a table, view, custom type, etc., possibly multi-part, i.e. db.schema.obj
- ValueWithSpan
- Wraps a primitive SQL
Value with its [Span] location
- BinaryOperator
- Binary operators
- ColumnOption
ColumnOptions are modifiers that follow a column definition in a CREATE TABLE statement.- DataType
- SQL data types
- Expr
- An SQL expression of any type.
- FunctionArg
- Forms of function arguments (named, expression-named, or positional).
- FunctionArgExpr
- Expression forms allowed as a function argument.
- FunctionArguments
- The arguments passed to a function call.
- ObjectNamePart
- A single part of an ObjectName
- SqlOption
- SQL option syntax used in table and server definitions.
- TableConstraint
- A table-level constraint, specified in a
CREATE TABLE or an
ALTER TABLE ADD <constraint> statement. - TimezoneInfo
- Timestamp and Time data types information about TimeZone formatting.
- Value
- Primitive SQL values such as number and string
- ObjectNamePartExt
- Visit
- A type that can be visited by a
Visitor. See Visitor for
recursively visiting parsed SQL statements. - VisitMut
- A type that can be visited by a
VisitorMut. See VisitorMut for
recursively visiting parsed SQL statements. - Visitor
- A visitor that can be used to walk an AST tree.
- VisitorMut
- A visitor that can be used to mutate an AST tree.
- visit_expressions_mut
- Invokes the provided closure iteratively with a mutable reference to all expressions
present in
v. - visit_statements_mut
- Invokes the provided closure on all statements (e.g.
SELECT, CREATE TABLE, etc) present in v