Structs§
- Column
Def - SQL column definition
- Column
Option Def - 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.
- Object
Name - A name of a table, view, custom type, etc., possibly multi-part, i.e. db.schema.obj
Enums§
- Binary
Operator - Binary operators
- Column
Option ColumnOption
s are modifiers that follow a column definition in aCREATE TABLE
statement.- Data
Type - SQL data types
- Expr
- An SQL expression of any type.
- Function
Arg - Function
ArgExpr - Function
Arguments - The arguments passed to a function call.
- SqlOption
- SqlValue
- Primitive SQL values such as number and string
- Table
Constraint - A table-level constraint, specified in a
CREATE TABLE
or anALTER TABLE ADD <constraint>
statement. - Timezone
Info - Timestamp and Time data types information about TimeZone formatting.
- Unary
Operator - Unary operators
Traits§
- Visit
- A type that can be visited by a
Visitor
. SeeVisitor
for recursively visiting parsed SQL statements. - Visit
Mut - A type that can be visited by a
VisitorMut
. SeeVisitorMut
for recursively visiting parsed SQL statements. - Visitor
- A visitor that can be used to walk an AST tree.
- Visitor
Mut - A visitor that can be used to mutate an AST tree.
Functions§
- parse_
column_ default_ constraint - 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 inv