Class YugabyteDBDatabase
- java.lang.Object
-
- migratedb.v1.core.internal.database.base.BaseDatabase
-
- migratedb.v1.core.internal.database.postgresql.PostgreSQLDatabase
-
- migratedb.v1.core.internal.database.yugabytedb.YugabyteDBDatabase
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Database
public class YugabyteDBDatabase extends PostgreSQLDatabase
-
-
Field Summary
-
Fields inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcTemplate, rawMainJdbcConnection
-
-
Constructor Summary
Constructors Constructor Description YugabyteDBDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected YugabyteDBSessiondoGetSession(Connection connection)Retrieves a MigrateDB session for this JDBC connection.voidensureSupported()Ensure MigrateDB supports this version of this database.booleansupportsDdlTransactions()-
Methods inherited from class migratedb.v1.core.internal.database.postgresql.PostgreSQLDatabase
catalogIsSchema, doGetCurrentUser, doQuote, getBooleanFalse, getBooleanTrue, getEscapedQuote, getRawCreateScript, getSelectStatement, supportsChangingCurrentSchema, usesSingleSession
-
Methods inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
close, computeVersionDisplayName, determineVersion, doGetCatalog, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainSession, getMigrationSession, getOpenQuote, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote
-
-
-
-
Constructor Detail
-
YugabyteDBDatabase
public YugabyteDBDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)
-
-
Method Detail
-
doGetSession
protected YugabyteDBSession doGetSession(Connection connection)
Description copied from class:BaseDatabaseRetrieves a MigrateDB session for this JDBC connection.- Overrides:
doGetSessionin classPostgreSQLDatabase
-
ensureSupported
public void ensureSupported()
Description copied from interface:DatabaseEnsure MigrateDB supports this version of this database.- Specified by:
ensureSupportedin interfaceDatabase- Overrides:
ensureSupportedin classPostgreSQLDatabase
-
supportsDdlTransactions
public boolean supportsDdlTransactions()
- Specified by:
supportsDdlTransactionsin interfaceDatabase- Overrides:
supportsDdlTransactionsin classPostgreSQLDatabase
-
-