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(DatabasePlatform platform)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addColumnComment(DdlBuffer apply, String table, String column, String comment)
Add column comment as a separate statement.void
addTableComment(DdlBuffer apply, String tableName, String tableComment)
Add table comment as a separate statement (from the create table statement).String
asIdentityColumn(String columnDefn, DdlIdentity identity)
Map bigint, integer and smallint all into serial.boolean
isInlineComments()
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(DatabasePlatform platform)
-
-
Method Detail
-
asIdentityColumn
public String asIdentityColumn(String columnDefn, DdlIdentity identity)
Map bigint, integer and smallint all into serial.- Overrides:
asIdentityColumn
in classPlatformDdl
-
addTableComment
public void addTableComment(DdlBuffer apply, String tableName, String tableComment)
Description copied from class:PlatformDdl
Add table comment as a separate statement (from the create table statement).- Overrides:
addTableComment
in classPlatformDdl
-
addColumnComment
public void addColumnComment(DdlBuffer apply, String table, String column, String comment)
Description copied from class:PlatformDdl
Add column comment as a separate statement.- Overrides:
addColumnComment
in classPlatformDdl
-
isInlineComments
public boolean isInlineComments()
Description copied from class:PlatformDdl
Return true if the table and column comments are included inline.- Overrides:
isInlineComments
in classPlatformDdl
-
-