Class TiDBDatabase
- java.lang.Object
-
- migratedb.core.internal.database.base.BaseDatabase<MySQLConnection>
-
- migratedb.core.internal.database.mysql.MySQLDatabase
-
- migratedb.core.internal.database.mysql.tidb.TiDBDatabase
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Database<MySQLConnection>
public class TiDBDatabase extends MySQLDatabase
-
-
Field Summary
-
Fields inherited from class migratedb.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection
-
-
Constructor Summary
Constructors Constructor Description TiDBDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected MySQLConnectiondoGetConnection(Connection connection)Retrieves a MigrateDB Connection for this JDBC connection.protected booleanisCreateTableAsSelectAllowed()-
Methods inherited from class migratedb.core.internal.database.mysql.MySQLDatabase
catalogIsSchema, determineVersion, doGetCurrentUser, ensureSupported, getBooleanFalse, getBooleanTrue, getCloseQuote, getConstraintName, getOpenQuote, getRawCreateScript, supportsChangingCurrentSchema, supportsDdlTransactions, useSingleConnection
-
Methods inherited from class migratedb.core.internal.database.base.BaseDatabase
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, doQuote, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getEscapedQuote, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getSelectStatement, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote
-
-
-
-
Constructor Detail
-
TiDBDatabase
public TiDBDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)
-
-
Method Detail
-
doGetConnection
protected MySQLConnection doGetConnection(Connection connection)
Description copied from class:BaseDatabaseRetrieves a MigrateDB Connection for this JDBC connection.- Overrides:
doGetConnectionin classMySQLDatabase
-
isCreateTableAsSelectAllowed
protected boolean isCreateTableAsSelectAllowed()
- Overrides:
isCreateTableAsSelectAllowedin classMySQLDatabase
-
-