Class CockroachDBSchema
java.lang.Object
migratedb.v1.core.internal.database.base.BaseSchema<CockroachDBDatabase,CockroachDBTable>
migratedb.v1.core.internal.database.cockroachdb.CockroachDBSchema
- All Implemented Interfaces:
Schema<CockroachDBDatabase,CockroachDBTable>
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseSchema
database, jdbcTemplate, name -
Constructor Summary
ConstructorsConstructorDescriptionCockroachDBSchema(JdbcTemplate jdbcTemplate, CockroachDBDatabase database, String name) -
Method Summary
Modifier and TypeMethodDescriptionprotected CockroachDBTable[]Retrieves all the tables in this schema.protected voiddoClean()Cleans all the objects in this schema.protected voidprotected voiddoCreate()Creates this schema in the database.protected voidprotected voiddoDrop()Drops this schema from the database.protected voidprotected booleandoEmpty()Checks whether this schema is empty.protected booleandoExists()Checks whether this schema exists.Table<?,?> Retrieves the table with this name in this schema.Methods inherited from class migratedb.v1.core.internal.database.base.BaseSchema
allFunctions, allTables, allTypes, clean, create, doAllFunctions, drop, empty, equals, exists, getFunction, getName, getType, hashCode, toString
-
Constructor Details
-
CockroachDBSchema
-
-
Method Details
-
doExists
Description copied from class:BaseSchemaChecks whether this schema exists.- Specified by:
doExistsin classBaseSchema<CockroachDBDatabase,CockroachDBTable> - Throws:
SQLException- when the check failed.
-
doEmpty
Description copied from class:BaseSchemaChecks whether this schema is empty.- Specified by:
doEmptyin classBaseSchema<CockroachDBDatabase,CockroachDBTable> - Throws:
SQLException- when the check failed.
-
doCreate
Description copied from class:BaseSchemaCreates this schema in the database.- Specified by:
doCreatein classBaseSchema<CockroachDBDatabase,CockroachDBTable> - Throws:
SQLException- when the creation failed.
-
doCreateOnce
- Throws:
SQLException
-
doDrop
Description copied from class:BaseSchemaDrops this schema from the database.- Specified by:
doDropin classBaseSchema<CockroachDBDatabase,CockroachDBTable> - Throws:
SQLException- when the drop failed.
-
doDropOnce
- Throws:
SQLException
-
doClean
Description copied from class:BaseSchemaCleans all the objects in this schema.- Specified by:
doCleanin classBaseSchema<CockroachDBDatabase,CockroachDBTable> - Throws:
SQLException- when the clean failed.
-
doCleanOnce
- Throws:
SQLException
-
doAllTables
Description copied from class:BaseSchemaRetrieves all the tables in this schema.- Specified by:
doAllTablesin classBaseSchema<CockroachDBDatabase,CockroachDBTable> - Throws:
SQLException- when the retrieval failed.
-
getTable
Description copied from interface:SchemaRetrieves the table with this name in this schema.
-