1 package com.mapd.parser.extension.ddl;
3 import com.google.gson.annotations.Expose;
5 import org.apache.calcite.sql.SqlKind;
7 import org.apache.calcite.sql.SqlSpecialOperator;
8 import org.apache.calcite.sql.parser.SqlParserPos;
15 new SqlSpecialOperator(
"ALTER_DATABASE", SqlKind.OTHER_DDL);
24 public enum AlterType { CHANGE_OWNER, RENAME_DATABASE }
31 private SqlParserPos
pos;
void setDatabaseName(final String databaseName)
void setAlterType(final AlterType alterType)
SqlAlterDatabase(final SqlParserPos pos, final AlterType alterType, final String databaseName, final String newDatabaseName, final String newOwner)
static final SqlOperator OPERATOR
void setPos(final SqlParserPos pos)
void setNewOwner(final String newOwner)
void setNewDatabaseName(final String newDatabaseName)