Class CockroachDdl
- java.lang.Object
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
-
- io.ebeaninternal.dbmigration.ddlgeneration.platform.CockroachDdl
-
public class CockroachDdl extends PlatformDdl
CockroachDB specific DDL handling.
-
-
Constructor Summary
Constructors Constructor Description CockroachDdl(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).StringasIdentityColumn(String columnDefn, DdlIdentity identity)Map bigint, integer and smallint all into serial.booleanisInlineComments()Return 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 Detail
-
CockroachDdl
public CockroachDdl(io.ebean.config.dbplatform.DatabasePlatform platform)
-
-
Method Detail
-
asIdentityColumn
public String asIdentityColumn(String columnDefn, DdlIdentity identity)
Map bigint, integer and smallint all into serial.- Overrides:
asIdentityColumnin 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
-
-