Class SQLServerConnection

java.lang.Object
org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
org.flywaydb.database.sqlserver.SQLServerConnection
All Implemented Interfaces:
Closeable, AutoCloseable
Direct Known Subclasses:
SynapseConnection

public class SQLServerConnection extends org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
SQL Server connection.
  • Field Details

    • originalDatabaseName

      protected final String originalDatabaseName
  • Constructor Details

  • Method Details

    • getCurrentSchemaNameOrSearchPath

      protected String getCurrentSchemaNameOrSearchPath() throws SQLException
      Specified by:
      getCurrentSchemaNameOrSearchPath in class org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
      Throws:
      SQLException
    • doRestoreOriginalState

      protected void doRestoreOriginalState() throws SQLException
      Overrides:
      doRestoreOriginalState in class org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
      Throws:
      SQLException
    • getSchema

      public org.flywaydb.core.internal.database.base.Schema getSchema(String name)
      Specified by:
      getSchema in class org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
    • lock

      public <T> T lock(org.flywaydb.core.internal.database.base.Table table, Callable<T> callable)
      Overrides:
      lock in class org.flywaydb.core.internal.database.base.Connection<SQLServerDatabase>
    • isAzureConnection

      public Boolean isAzureConnection()
    • getEngineEdition

      public SQLServerEngineEdition getEngineEdition()