Class RedshiftSchema
java.lang.Object
migratedb.v1.core.internal.database.base.BaseSchema<RedshiftDatabase,RedshiftTable>
migratedb.v1.core.internal.database.redshift.RedshiftSchema
- All Implemented Interfaces:
Schema<RedshiftDatabase,RedshiftTable>
PostgreSQL implementation of Schema.
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseSchema
database, jdbcTemplate, name -
Method Summary
Modifier and TypeMethodDescriptionprotected RedshiftTable[]Retrieves all the tables in this schema.protected voiddoClean()Cleans all the objects in this schema.protected voiddoCreate()Creates this schema in the database.protected voiddoDrop()Drops this schema from the database.protected booleandoEmpty()Checks whether this schema is empty.protected booleandoExists()Checks whether this schema exists.Table<?,?> Retrieves the table with this name in this schema.protected Type<?,?> Retrieves the type 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, hashCode, toString
-
Method Details
-
doExists
Description copied from class:BaseSchemaChecks whether this schema exists.- Specified by:
doExistsin classBaseSchema<RedshiftDatabase,RedshiftTable> - Throws:
SQLException- when the check failed.
-
doEmpty
Description copied from class:BaseSchemaChecks whether this schema is empty.- Specified by:
doEmptyin classBaseSchema<RedshiftDatabase,RedshiftTable> - Throws:
SQLException- when the check failed.
-
doCreate
Description copied from class:BaseSchemaCreates this schema in the database.- Specified by:
doCreatein classBaseSchema<RedshiftDatabase,RedshiftTable> - Throws:
SQLException- when the creation failed.
-
doDrop
Description copied from class:BaseSchemaDrops this schema from the database.- Specified by:
doDropin classBaseSchema<RedshiftDatabase,RedshiftTable> - Throws:
SQLException- when the drop failed.
-
doClean
Description copied from class:BaseSchemaCleans all the objects in this schema.- Specified by:
doCleanin classBaseSchema<RedshiftDatabase,RedshiftTable> - Throws:
SQLException- when the clean failed.
-
doAllTables
Description copied from class:BaseSchemaRetrieves all the tables in this schema.- Specified by:
doAllTablesin classBaseSchema<RedshiftDatabase,RedshiftTable> - Throws:
SQLException- when the retrieval failed.
-
getTable
Description copied from interface:SchemaRetrieves the table with this name in this schema. -
getType
Description copied from class:BaseSchemaRetrieves the type with this name in this schema.- Overrides:
getTypein classBaseSchema<RedshiftDatabase,RedshiftTable>
-