Class SqlAlterTableDropConstraint

  • All Implemented Interfaces:
    Cloneable

    public class SqlAlterTableDropConstraint
    extends SqlAlterTable
    ALTER TABLE [IF EXISTS] [catalog_name.][db_name.]table_name DROP CONSTRAINT constraint_name.
    • Constructor Detail

      • SqlAlterTableDropConstraint

        public SqlAlterTableDropConstraint​(org.apache.calcite.sql.parser.SqlParserPos pos,
                                           org.apache.calcite.sql.SqlIdentifier tableName,
                                           org.apache.calcite.sql.SqlIdentifier constraintName,
                                           boolean ifTableExists)
        Creates an alter table drop constraint node.
        Parameters:
        pos - Parser position
        tableName - Table name
        constraintName - Constraint name
        ifTableExists - Whether IF EXISTS is specified
    • Method Detail

      • getConstraintName

        public org.apache.calcite.sql.SqlIdentifier getConstraintName()
      • getOperandList

        public List<org.apache.calcite.sql.SqlNode> getOperandList()
        Specified by:
        getOperandList in class org.apache.calcite.sql.SqlCall
      • unparse

        public void unparse​(org.apache.calcite.sql.SqlWriter writer,
                            int leftPrec,
                            int rightPrec)
        Overrides:
        unparse in class SqlAlterTable