Class YugabyteDBDatabase
- java.lang.Object
-
- migratedb.core.internal.database.base.BaseDatabase<PostgreSQLConnection>
-
- migratedb.core.internal.database.postgresql.PostgreSQLDatabase
-
- migratedb.core.internal.database.yugabytedb.YugabyteDBDatabase
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Database<PostgreSQLConnection>
public class YugabyteDBDatabase extends PostgreSQLDatabase
-
-
Field Summary
-
Fields inherited from class migratedb.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, 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 YugabyteDBConnectiondoGetConnection(Connection connection)Retrieves a MigrateDB Connection for this JDBC connection.voidensureSupported()Ensure MigrateDB supports this version of this database.booleansupportsDdlTransactions()-
Methods inherited from class migratedb.core.internal.database.postgresql.PostgreSQLDatabase
catalogIsSchema, doGetCurrentUser, doQuote, getBooleanFalse, getBooleanTrue, getEscapedQuote, getRawCreateScript, getSelectStatement, supportsChangingCurrentSchema, useSingleConnection
-
Methods inherited from class migratedb.core.internal.database.base.BaseDatabase
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote
-
-
-
-
Constructor Detail
-
YugabyteDBDatabase
public YugabyteDBDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)
-
-
Method Detail
-
doGetConnection
protected YugabyteDBConnection doGetConnection(Connection connection)
Description copied from class:BaseDatabaseRetrieves a MigrateDB Connection for this JDBC connection.- Overrides:
doGetConnectionin classPostgreSQLDatabase
-
ensureSupported
public void ensureSupported()
Description copied from interface:DatabaseEnsure MigrateDB supports this version of this database.- Specified by:
ensureSupportedin interfaceDatabase<PostgreSQLConnection>- Overrides:
ensureSupportedin classPostgreSQLDatabase
-
supportsDdlTransactions
public boolean supportsDdlTransactions()
- Specified by:
supportsDdlTransactionsin interfaceDatabase<PostgreSQLConnection>- Overrides:
supportsDdlTransactionsin classPostgreSQLDatabase
-
-