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 SummaryFields inherited from class org.flywaydb.core.internal.database.base.Databaseconfiguration, databaseType, jdbcConnectionFactory, jdbcMetaData, jdbcTemplate, rawMainJdbcConnection, statementInterceptor
- 
Constructor SummaryConstructorsConstructorDescriptionPostgreSQLDatabase(org.flywaydb.core.api.configuration.Configuration configuration, org.flywaydb.core.internal.jdbc.JdbcConnectionFactory jdbcConnectionFactory, org.flywaydb.core.internal.jdbc.StatementInterceptor statementInterceptor) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprotected PostgreSQLConnectiondoGetConnection(Connection connection) protected StringvoidensureSupported(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.htmlbooleanbooleanMethods inherited from class org.flywaydb.core.internal.database.base.DatabasecleanPostSchemas, 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- 
PostgreSQLDatabasepublic 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:
- doGetConnectionin class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
ensureSupportedpublic void ensureSupported(org.flywaydb.core.api.configuration.Configuration configuration) - Specified by:
- ensureSupportedin class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
getRawCreateScriptpublic String getRawCreateScript(org.flywaydb.core.internal.database.base.Table table, boolean baseline) - Specified by:
- getRawCreateScriptin class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
doGetCurrentUser- Overrides:
- doGetCurrentUserin class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
- Throws:
- SQLException
 
- 
supportsDdlTransactionspublic boolean supportsDdlTransactions()- Specified by:
- supportsDdlTransactionsin class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
getBooleanTrue- Specified by:
- getBooleanTruein class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
getBooleanFalse- Specified by:
- getBooleanFalsein class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
doQuote- Overrides:
- doQuotein class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
getEscapedQuote- Overrides:
- getEscapedQuotein class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
catalogIsSchemapublic boolean catalogIsSchema()- Specified by:
- catalogIsSchemain class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
useSingleConnectionpublic boolean useSingleConnection()- Overrides:
- useSingleConnectionin class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
getSelectStatementThis 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:
- getSelectStatementin class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
- 
getDatabaseHosting- Overrides:
- getDatabaseHostingin class- org.flywaydb.core.internal.database.base.Database<PostgreSQLConnection>
 
 
-