Class ClickHouseDdl
java.lang.Object
io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
io.ebeaninternal.dbmigration.ddlgeneration.platform.ClickHouseDdl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddColumnComment(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).alterTableAddForeignKey(DdlOptions options, io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteForeignKey request)Add foreign key.alterTableDropForeignKey(String tableName, String fkName)Return the drop foreign key clause.createCheckConstraint(String ckName, String checkConstraint)Returns the check constraint.createDdlHandler(io.ebean.config.DatabaseConfig config)Create a DdlHandler for the specific database platform.createIndex(io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteCreateIndex create)Return the drop index statement.booleanReturn true if the table and column comments are included inline.tableInlineForeignKey(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 Details
-
ClickHouseDdl
-
-
Method Details
-
createDdlHandler
Description copied from class:PlatformDdlCreate a DdlHandler for the specific database platform.- Overrides:
createDdlHandlerin classPlatformDdl
-
tableStorageEngine
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
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
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
Description copied from class:PlatformDdlReturns the check constraint.- Overrides:
createCheckConstraintin classPlatformDdl
-
addTableComment
Description copied from class:PlatformDdlAdd table comment as a separate statement (from the create table statement).- Overrides:
addTableCommentin classPlatformDdl
-
addColumnComment
Description copied from class:PlatformDdlAdd column comment as a separate statement.- Overrides:
addColumnCommentin classPlatformDdl
-
isInlineComments
Description copied from class:PlatformDdlReturn true if the table and column comments are included inline.- Overrides:
isInlineCommentsin classPlatformDdl
-