Class ClickHouseDdl
- java.lang.Object
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.ClickHouseDdl
-
public class ClickHouseDdl extends PlatformDdl
-
-
Constructor Summary
Constructors Constructor Description ClickHouseDdl(io.ebean.config.dbplatform.DatabasePlatform platform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddColumnComment(DdlBuffer apply, String table, String column, String comment)Add column comment as a separate statement.voidaddTableComment(DdlBuffer apply, String tableName, String tableComment)Add table comment as a separate statement (from the create table statement).StringalterTableAddForeignKey(DdlOptions options, io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteForeignKey request)Add foreign key.StringalterTableDropForeignKey(String tableName, String fkName)Return the drop foreign key clause.StringcreateCheckConstraint(String ckName, String checkConstraint)Returns the check constraint.DdlHandlercreateDdlHandler(io.ebean.config.DatabaseConfig config)Create a DdlHandler for the specific database platform.StringcreateIndex(io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteCreateIndex create)StringdropIndex(String indexName, String tableName, boolean concurrent)Return the drop index statement.booleanisInlineComments()Return true if the table and column comments are included inline.StringtableInlineForeignKey(io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteForeignKey request)Return the foreign key constraint when used inline with create table.voidtableStorageEngine(DdlBuffer apply, String storageEngine)Add an table storage engine to the create table statement.-
Methods inherited from class io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
addHistoryTable, addTablePartition, alterColumnBaseAttributes, alterColumnDefaultValue, alterColumnNotnull, alterColumnType, alterTableAddCheckConstraint, alterTableAddColumn, alterTableAddUniqueConstraint, alterTableDropColumn, alterTableDropConstraint, alterTableDropUniqueConstraint, asIdentityColumn, configure, convert, convertDefaultValue, createSequence, createWithHistory, dropHistoryTable, dropIndex, dropSequence, dropTable, generateEpilog, generateProlog, getCreateTableCommandPrefix, getPlatform, getUpdateNullWithDefault, inlineTableComment, isIncludeStorageEngine, isInlineForeignKeys, isInlineUniqueWhenNullable, lockTables, regenerateHistoryTriggers, setLockTimeout, suppressPrimaryKeyOnPartition, unlockTables, useIdentityType, writeTableColumns
-
-
-
-
Constructor Detail
-
ClickHouseDdl
public ClickHouseDdl(io.ebean.config.dbplatform.DatabasePlatform platform)
-
-
Method Detail
-
createDdlHandler
public DdlHandler createDdlHandler(io.ebean.config.DatabaseConfig config)
Description copied from class:PlatformDdlCreate a DdlHandler for the specific database platform.- Overrides:
createDdlHandlerin classPlatformDdl
-
tableStorageEngine
public void tableStorageEngine(DdlBuffer apply, String storageEngine) throws IOException
Add an table storage engine to the create table statement.- Overrides:
tableStorageEnginein classPlatformDdl- Throws:
IOException
-
alterTableAddForeignKey
public String alterTableAddForeignKey(DdlOptions options, io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteForeignKey request)
Description copied from class:PlatformDdlAdd foreign key.- Overrides:
alterTableAddForeignKeyin classPlatformDdl
-
alterTableDropForeignKey
public String alterTableDropForeignKey(String tableName, String fkName)
Description copied from class:PlatformDdlReturn the drop foreign key clause.- Overrides:
alterTableDropForeignKeyin classPlatformDdl
-
tableInlineForeignKey
public String tableInlineForeignKey(io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteForeignKey request)
Description copied from class:PlatformDdlReturn the foreign key constraint when used inline with create table.- Overrides:
tableInlineForeignKeyin classPlatformDdl
-
dropIndex
public String dropIndex(String indexName, String tableName, boolean concurrent)
Description copied from class:PlatformDdlReturn the drop index statement.- Overrides:
dropIndexin classPlatformDdl
-
createIndex
public String createIndex(io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteCreateIndex create)
- Overrides:
createIndexin classPlatformDdl
-
createCheckConstraint
public String createCheckConstraint(String ckName, String checkConstraint)
Description copied from class:PlatformDdlReturns the check constraint.- Overrides:
createCheckConstraintin classPlatformDdl
-
addTableComment
public void addTableComment(DdlBuffer apply, String tableName, String tableComment)
Description copied from class:PlatformDdlAdd table comment as a separate statement (from the create table statement).- Overrides:
addTableCommentin classPlatformDdl
-
addColumnComment
public void addColumnComment(DdlBuffer apply, String table, String column, String comment)
Description copied from class:PlatformDdlAdd column comment as a separate statement.- Overrides:
addColumnCommentin classPlatformDdl
-
isInlineComments
public boolean isInlineComments()
Description copied from class:PlatformDdlReturn true if the table and column comments are included inline.- Overrides:
isInlineCommentsin classPlatformDdl
-
-