Skip to content

Latest commit

 

History

History
30 lines (25 loc) · 1.79 KB

File metadata and controls

30 lines (25 loc) · 1.79 KB

PostgreSQL JDBC Framework

The PostgreSQL JDBC Framework causes a JDBC driver JAR to be automatically downloaded and placed on a classpath to work with a bound PostgreSQL Service. This JAR will not be downloaded if the application provides a PostgreSQL JDBC JAR itself.

Detection Criterion Existence of a single bound PostgreSQL service and no provided PostgreSQL JDBC JAR.
  • Existence of a PostgreSQL service is defined as the VCAP_SERVICES payload containing a service who's name, label or tag has postgres as a substring.
  • Existence of a PostgreSQL JDBC JAR is defined as the application containing a JAR who's name matches postgresql-*.jar
Tags postgresql-jdbc=<version>
Tags are printed to standard output by the buildpack detect script

User-Provided Service (Optional)

Users may optionally provide their own PostgreSQL service. A user-provided PostgreSQL service must have a name or tag with postgres in it so that the PostgreSQL JDBC Framework will automatically download the JDBC driver JAR and place it on the classpath.

Configuration

For general information on configuring the buildpack, including how to specify configuration values through environment variables, refer to Configuration and Extension.

The framework has no user-configurable buildpack options. The PostgreSQL JDBC driver version is managed by the buildpack manifest.