Class CockroachDBTable
java.lang.Object
org.flywaydb.core.internal.database.base.SchemaObject<D,S>
org.flywaydb.core.internal.database.base.Table<CockroachDBDatabase,CockroachDBSchema>
org.flywaydb.database.cockroachdb.CockroachDBTable
public class CockroachDBTable
extends org.flywaydb.core.internal.database.base.Table<CockroachDBDatabase,CockroachDBSchema>
CockroachDB-specific table.
Note that CockroachDB doesn't support table locks. We therefore use a row in the schema history as a lock indicator;
if another process has inserted such a row we wait (potentially indefinitely) for it to be removed before
carrying out a migration.
-
Field Summary
Fields inherited from class org.flywaydb.core.internal.database.base.Table
lockDepth
Fields inherited from class org.flywaydb.core.internal.database.base.SchemaObject
database, jdbcTemplate, name, schema
-
Method Summary
Methods inherited from class org.flywaydb.core.internal.database.base.Table
exists, exists, lock, unlock
Methods inherited from class org.flywaydb.core.internal.database.base.SchemaObject
drop, getDatabase, getName, getSchema, toString
-
Method Details
-
doDrop
- Specified by:
doDrop
in classorg.flywaydb.core.internal.database.base.SchemaObject<CockroachDBDatabase,
CockroachDBSchema> - Throws:
SQLException
-
doDropOnce
- Throws:
SQLException
-
doExists
- Specified by:
doExists
in classorg.flywaydb.core.internal.database.base.Table<CockroachDBDatabase,
CockroachDBSchema> - Throws:
SQLException
-
doExistsOnce
- Throws:
SQLException
-
doLock
- Specified by:
doLock
in classorg.flywaydb.core.internal.database.base.Table<CockroachDBDatabase,
CockroachDBSchema> - Throws:
SQLException
-
doUnlock
- Overrides:
doUnlock
in classorg.flywaydb.core.internal.database.base.Table<CockroachDBDatabase,
CockroachDBSchema> - Throws:
SQLException
-