Class TiDBConnection

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class TiDBConnection
    extends org.flywaydb.core.internal.database.mysql.MySQLConnection
    • Field Summary

      • Fields inherited from class org.flywaydb.core.internal.database.base.Connection

        database, jdbcTemplate, originalSchemaNameOrSearchPath
    • Constructor Summary

      Constructors 
      Constructor Description
      TiDBConnection​(org.flywaydb.core.internal.database.mysql.MySQLDatabase database, java.sql.Connection connection)  
    • Method Summary

      Modifier and Type Method Description
      protected boolean canUseNamedLockTemplate()  
      <T> T lock​(org.flywaydb.core.internal.database.base.Table table, java.util.concurrent.Callable<T> callable)  
      • Methods inherited from class org.flywaydb.core.internal.database.mysql.MySQLConnection

        doChangeCurrentSchemaOrSearchPathTo, doGetCurrentSchema, doRestoreOriginalState, getCurrentSchemaNameOrSearchPath, getSchema
      • Methods inherited from class org.flywaydb.core.internal.database.base.Connection

        changeCurrentSchemaTo, close, getCurrentSchema, getJdbcConnection, getJdbcTemplate, restoreOriginalState
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TiDBConnection

        public TiDBConnection​(org.flywaydb.core.internal.database.mysql.MySQLDatabase database,
                              java.sql.Connection connection)
    • Method Detail

      • lock

        public <T> T lock​(org.flywaydb.core.internal.database.base.Table table,
                          java.util.concurrent.Callable<T> callable)
        Overrides:
        lock in class org.flywaydb.core.internal.database.mysql.MySQLConnection
      • canUseNamedLockTemplate

        protected boolean canUseNamedLockTemplate()
        Overrides:
        canUseNamedLockTemplate in class org.flywaydb.core.internal.database.mysql.MySQLConnection