Package org.apache.calcite.sql.ddl
Parse tree for SQL DDL statements.
These are available in the extended SQL parser that is part of Calcite's "server" module; the core parser in the "core" module only supports SELECT and DML.
If you are writing a project that requires DDL it is likely that your DDL syntax is different than ours. We recommend that you copy-paste this the parser and its supporting classes into your own module, rather than try to extend this one.
-
Class Summary Class Description SqlAttributeDefinition Parse tree for SqlAttributeDefinition, which is part of aSqlCreateType
.SqlCheckConstraint Parse tree forUNIQUE
,PRIMARY KEY
constraints.SqlColumnDeclaration Parse tree forUNIQUE
,PRIMARY KEY
constraints.SqlCreateForeignSchema Parse tree forCREATE FOREIGN SCHEMA
statement.SqlCreateFunction Parse tree forCREATE FUNCTION
statement.SqlCreateMaterializedView Parse tree forCREATE MATERIALIZED VIEW
statement.SqlCreateMaterializedView.MaterializedViewTable A table that implements a materialized view.SqlCreateSchema Parse tree forCREATE SCHEMA
statement.SqlCreateTable Parse tree forCREATE TABLE
statement.SqlCreateTable.AbstractModifiableTable Abstract base class for implementations ofModifiableTable
.SqlCreateTable.ColumnDef Column definition.SqlCreateTable.MutableArrayTable Table backed by a Java list.SqlCreateType Parse tree forCREATE TYPE
statement.SqlCreateView Parse tree forCREATE VIEW
statement.SqlDdlNodes Utilities concerningSqlNode
for DDL.SqlDropFunction Parse tree forDROP FUNCTION
statement.SqlDropMaterializedView Parse tree forDROP MATERIALIZED VIEW
statement.SqlDropObject Base class for parse trees ofDROP TABLE
,DROP VIEW
,DROP MATERIALIZED VIEW
andDROP TYPE
statements.SqlDropSchema Parse tree forDROP TABLE
statement.SqlDropTable Parse tree forDROP TABLE
statement.SqlDropType Parse tree forDROP TYPE
statement.SqlDropView Parse tree forDROP VIEW
statement.SqlKeyConstraint Parse tree forUNIQUE
,PRIMARY KEY
constraints. -
Enum Summary Enum Description SqlDdlNodes.FileType File type for CREATE FUNCTION.