Class SQLiteDdl
java.lang.Object
io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
io.ebeaninternal.dbmigration.ddlgeneration.platform.SQLiteDdl
SQLite platform specific DDL.
Note: SQLite has very limited alter capabilities. Altering a column is not
supported and may need a recreation of the whole table
-
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).alterTableAddCheckConstraint(String tableName, String checkConstraintName, String checkConstraint) Alter table adding the check constraint.alterTableAddForeignKey(DdlOptions options, io.ebeaninternal.dbmigration.ddlgeneration.platform.WriteForeignKey request) Add foreign key.alterTableAddUniqueConstraint(String tableName, String uqName, String[] columns, String[] nullableColumns) Add a unique constraint to the table.alterTableDropConstraint(String tableName, String constraintName) Drop a unique constraint from the table.alterTableDropForeignKey(String tableName, String fkName) Return the drop foreign key clause.alterTableDropUniqueConstraint(String tableName, String uniqueConstraintName) Drop a unique constraint from the table (Sometimes this is an index).Methods inherited from class io.ebeaninternal.dbmigration.ddlgeneration.platform.PlatformDdl
addHistoryTable, addTablePartition, addTablespace, alterColumn, alterTableAddColumn, alterTableAddColumn, alterTableDropColumn, alterTableTablespace, asIdentityColumn, configure, convert, convertDefaultValue, createCheckConstraint, createDdlHandler, createIndex, createSequence, createWithHistory, dropHistoryTable, dropIndex, dropIndex, dropSequence, dropTable, generateEpilog, generateProlog, getCreateTableCommandPrefix, getPlatform, getUpdateNullWithDefault, inlineTableComment, isIncludeStorageEngine, isInlineComments, isInlineForeignKeys, isInlineUniqueWhenNullable, regenerateHistoryTriggers, setLockTimeout, suppressPrimaryKeyOnPartition, tableInlineForeignKey, tableStorageEngine, useIdentityType, writeTableColumns
-
Constructor Details
-
SQLiteDdl
-
-
Method Details
-
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
-
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
-
alterTableAddCheckConstraint
public String alterTableAddCheckConstraint(String tableName, String checkConstraintName, String checkConstraint) Description copied from class:PlatformDdlAlter table adding the check constraint.- Overrides:
alterTableAddCheckConstraintin classPlatformDdl
-
alterTableDropConstraint
Description copied from class:PlatformDdlDrop a unique constraint from the table.- Overrides:
alterTableDropConstraintin classPlatformDdl
-
alterTableAddUniqueConstraint
public String alterTableAddUniqueConstraint(String tableName, String uqName, String[] columns, String[] nullableColumns) Description copied from class:PlatformDdlAdd a unique constraint to the table.Overridden by MsSqlServer for specific null handling on unique constraints.
- Overrides:
alterTableAddUniqueConstraintin classPlatformDdl
-
alterTableDropUniqueConstraint
Description copied from class:PlatformDdlDrop a unique constraint from the table (Sometimes this is an index).- Overrides:
alterTableDropUniqueConstraintin classPlatformDdl
-