java.lang.Object
org.umlg.sqlg.plugin.PostgresPlugin
- All Implemented Interfaces:
SqlgPlugin
- Since:
- 1.2.0
- Author:
- Lukas Krejci
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canWorkWith
(DatabaseMetaData metaData) getDriverFor
(String connectionUrl) manageJdbcUrl
(String jdbcUrl) Append 'autosave=conservative' to the jdbc url.
-
Constructor Details
-
PostgresPlugin
public PostgresPlugin()
-
-
Method Details
-
canWorkWith
- Specified by:
canWorkWith
in interfaceSqlgPlugin
- Throws:
SQLException
-
getDriverFor
- Specified by:
getDriverFor
in interfaceSqlgPlugin
-
instantiateDialect
- Specified by:
instantiateDialect
in interfaceSqlgPlugin
-
manageJdbcUrl
Append 'autosave=conservative' to the jdbc url. This will ensure that the driver will take care of stale prepared statements. refer to pgjdbc issue 451- Specified by:
manageJdbcUrl
in interfaceSqlgPlugin
- Parameters:
jdbcUrl
- The jdbc url- Returns:
- The jdbc url with autosave=conservative appended.
-