Class CockroachDdl
java.lang.Object
io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
io.ebeaninternal.dbmigration.ddlgeneration.platform.CockroachDdl
CockroachDB specific DDL handling.
-
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).asIdentityColumn(String columnDefn, DdlIdentity identity)Map bigint, integer and smallint all into serial.booleanReturn true if the table and column comments are included inline.Methods inherited from class io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
addHistoryTable, addTablePartition, alterColumnBaseAttributes, alterColumnDefaultValue, alterColumnNotnull, alterColumnType, alterTableAddCheckConstraint, alterTableAddColumn, alterTableAddForeignKey, alterTableAddUniqueConstraint, alterTableDropColumn, alterTableDropConstraint, alterTableDropForeignKey, alterTableDropUniqueConstraint, configure, convert, convertDefaultValue, createCheckConstraint, createDdlHandler, createIndex, createSequence, createWithHistory, dropHistoryTable, dropIndex, dropIndex, dropSequence, dropTable, generateEpilog, generateProlog, getCreateTableCommandPrefix, getPlatform, getUpdateNullWithDefault, inlineTableComment, isIncludeStorageEngine, isInlineForeignKeys, isInlineUniqueWhenNullable, lockTables, regenerateHistoryTriggers, setLockTimeout, suppressPrimaryKeyOnPartition, tableInlineForeignKey, tableStorageEngine, unlockTables, useIdentityType, writeTableColumns
-
Constructor Details
-
CockroachDdl
-
-
Method Details
-
asIdentityColumn
Map bigint, integer and smallint all into serial.- Overrides:
asIdentityColumnin 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
-