Class CockroachDBConnection
java.lang.Object
migratedb.v1.core.internal.database.base.BaseConnection<CockroachDBDatabase>
migratedb.v1.core.internal.database.cockroachdb.CockroachDBConnection
- All Implemented Interfaces:
AutoCloseable,Connection<CockroachDBDatabase>
-
Field Summary
Fields inherited from class migratedb.v1.core.internal.database.base.BaseConnection
database, jdbcTemplate, originalSchemaNameOrSearchPath -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeCurrentSchemaTo(Schema<?, ?> schema) voidSchema<?,?> protected StringSchema<?,?> Retrieves the schema with this name in the database.Methods inherited from class migratedb.v1.core.internal.database.base.BaseConnection
close, doRestoreOriginalState, getCurrentSchema, getJdbcConnection, getJdbcTemplate, lock, restoreOriginalState
-
Constructor Details
-
CockroachDBConnection
-
-
Method Details
-
getSchema
Description copied from interface:ConnectionRetrieves the schema with this name in the database. -
doGetCurrentSchema
- Overrides:
doGetCurrentSchemain classBaseConnection<CockroachDBDatabase>- Throws:
SQLException
-
getCurrentSchemaNameOrSearchPath
- Specified by:
getCurrentSchemaNameOrSearchPathin classBaseConnection<CockroachDBDatabase>- Throws:
SQLException- when the current schema name or search path could not be retrieved.
-
changeCurrentSchemaTo
- Specified by:
changeCurrentSchemaToin interfaceConnection<CockroachDBDatabase>- Overrides:
changeCurrentSchemaToin classBaseConnection<CockroachDBDatabase>
-
doChangeCurrentSchemaOrSearchPathTo
- Overrides:
doChangeCurrentSchemaOrSearchPathToin classBaseConnection<CockroachDBDatabase>- Parameters:
schema- The new current schema for this connection.- Throws:
SQLException- when the current schema could not be set.
-