Class TiDBDatabase
- java.lang.Object
-
- migratedb.v1.core.internal.database.base.BaseDatabase
-
- migratedb.v1.core.internal.database.mysql.MySQLDatabase
-
- migratedb.v1.core.internal.database.mysql.tidb.TiDBDatabase
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Database
public class TiDBDatabase extends MySQLDatabase
-
-
Field Summary
-
Fields inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
configuration, databaseType, jdbcConnectionFactory, 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 MySQLSessiondoGetSession(Connection connection)Retrieves a MigrateDB session for this JDBC connection.protected booleanisCreateTableAsSelectAllowed()-
Methods inherited from class migratedb.v1.core.internal.database.mysql.MySQLDatabase
catalogIsSchema, determineVersion, doGetCurrentUser, ensureSupported, getBooleanFalse, getBooleanTrue, getCloseQuote, getConstraintName, getOpenQuote, getRawCreateScript, supportsChangingCurrentSchema, supportsDdlTransactions, usesSingleSession
-
Methods inherited from class migratedb.v1.core.internal.database.base.BaseDatabase
close, computeVersionDisplayName, doGetCatalog, doQuote, ensureDatabaseIsRecentEnough, getAllSchemas, getBaselineStatement, getCatalog, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getEscapedQuote, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainSession, getMigrationSession, getSelectStatement, getVersion, quote, recommendMigrateDbUpgradeIfNecessary, recommendMigrateDbUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote
-
-
-
-
Constructor Detail
-
TiDBDatabase
public TiDBDatabase(Configuration configuration, JdbcConnectionFactory jdbcConnectionFactory)
-
-
Method Detail
-
doGetSession
protected MySQLSession doGetSession(Connection connection)
Description copied from class:BaseDatabaseRetrieves a MigrateDB session for this JDBC connection.- Overrides:
doGetSessionin classMySQLDatabase
-
isCreateTableAsSelectAllowed
protected boolean isCreateTableAsSelectAllowed()
- Overrides:
isCreateTableAsSelectAllowedin classMySQLDatabase
-
-