Class PostgreSQLConnection

java.lang.Object
org.flywaydb.core.internal.database.base.Connection<PostgreSQLDatabase>
org.flywaydb.database.postgresql.PostgreSQLConnection
All Implemented Interfaces:
Closeable, AutoCloseable

public class PostgreSQLConnection extends org.flywaydb.core.internal.database.base.Connection<PostgreSQLDatabase>
  • Constructor Details

  • Method Details

    • doRestoreOriginalState

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

      public org.flywaydb.core.internal.database.base.Schema doGetCurrentSchema() throws SQLException
      Overrides:
      doGetCurrentSchema in class org.flywaydb.core.internal.database.base.Connection<PostgreSQLDatabase>
      Throws:
      SQLException
    • getCurrentSchemaNameOrSearchPath

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

      public void changeCurrentSchemaTo(org.flywaydb.core.internal.database.base.Schema schema)
      Overrides:
      changeCurrentSchemaTo in class org.flywaydb.core.internal.database.base.Connection<PostgreSQLDatabase>
    • doChangeCurrentSchemaOrSearchPathTo

      public void doChangeCurrentSchemaOrSearchPathTo(String schema) throws SQLException
      Overrides:
      doChangeCurrentSchemaOrSearchPathTo in class org.flywaydb.core.internal.database.base.Connection<PostgreSQLDatabase>
      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<PostgreSQLDatabase>
    • 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<PostgreSQLDatabase>