Package org.flywaydb.database.postgresql
Class PostgreSQLDatabase
java.lang.Object
org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
org.flywaydb.database.postgresql.PostgreSQLDatabase
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class PostgreSQLDatabase
extends org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
Field Summary
Fields inherited from class org.flywaydb.core.internal.database.base.Database
configuration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection, statementInterceptor
-
Constructor Summary
ConstructorsConstructorDescriptionPostgreSQLDatabase
(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
protected PostgreSQLConnection
doGetConnection
(Connection connection) protected String
void
ensureSupported
(org.flywaydb.core.api.configuration.Configuration configuration) getRawCreateScript
(org.flywaydb.core.internal.database.base.Table table, boolean baseline) getSelectStatement
(org.flywaydb.core.internal.database.base.Table table) This exists to fix this issue: https://github.com/flyway/flyway/issues/2638 See https://www.pgpool.net/docs/latest/en/html/runtime-config-load-balancing.htmlboolean
boolean
Methods inherited from class org.flywaydb.core.internal.database.base.Database
cleanPostSchemas, cleanPreSchemas, close, computeVersionDisplayName, determineVersion, disposeEventConnection, doCleanPostSchemas, doCleanPreSchemas, doGetCatalog, ensureDatabaseIsRecentEnough, ensureDatabaseNotOlderThanOtherwiseRecommendUpgradeToFlywayEdition, getAllSchemas, getBaselineStatement, getCatalog, getCloseQuote, getConfiguration, getCreateScript, getCurrentUser, getDatabaseType, getDefaultDelimiter, getDeleteStatement, getEventConnection, getInsertStatement, getInstalledBy, getJdbcMetaData, getMainConnection, getMigrationConnection, getOpenQuote, getUpdateStatement, getVersion, hasEventConnection, notifyDatabaseIsNotFormallySupported, quote, recommendFlywayUpgradeIfNecessary, recommendFlywayUpgradeIfNecessaryForMajorVersion, supportsEmptyMigrationDescription, supportsMultiStatementTransactions, unQuote
-
Constructor Details
-
PostgreSQLDatabase
public PostgreSQLDatabase(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor)
-
-
Method Details
-
doGetConnection
- Specified by:
doGetConnection
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
ensureSupported
public void ensureSupported(org.flywaydb.core.api.configuration.Configuration configuration) - Specified by:
ensureSupported
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
getRawCreateScript
public String getRawCreateScript(org.flywaydb.core.internal.database.base.Table table, boolean baseline) - Specified by:
getRawCreateScript
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
doGetCurrentUser
- Overrides:
doGetCurrentUser
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
- Throws:
SQLException
-
supportsDdlTransactions
public boolean supportsDdlTransactions()- Specified by:
supportsDdlTransactions
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
getBooleanTrue
- Specified by:
getBooleanTrue
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
getBooleanFalse
- Specified by:
getBooleanFalse
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
doQuote
- Overrides:
doQuote
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
getEscapedQuote
- Overrides:
getEscapedQuote
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
catalogIsSchema
public boolean catalogIsSchema()- Specified by:
catalogIsSchema
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
useSingleConnection
public boolean useSingleConnection()- Overrides:
useSingleConnection
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
getSelectStatement
This exists to fix this issue: https://github.com/flyway/flyway/issues/2638 See https://www.pgpool.net/docs/latest/en/html/runtime-config-load-balancing.html- Overrides:
getSelectStatement
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-
getDatabaseHosting
- Overrides:
getDatabaseHosting
in classorg.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
-