Quarkus Embedded Postgresql
An alternative to quarkus-jdbc-postgres that rather than instantiating a pgsql server, uses zonky embedded library, reducing memory footprint.
It is mainly oriented for single pod k8s deployments or integration testing.
Installation
If you want to use this extension, you need to add the io.quarkiverse.embedded.postgresql:quarkus-embedded-postgresql
extension to your build file.
For instance, with Maven, add the following dependency to your POM file:
<dependency>
<groupId>io.quarkiverse.embedded.postgresql</groupId>
<artifactId>quarkus-embedded-postgresql</artifactId>
</dependency>
Extension Configuration Reference
Configuration property fixed at build time - All other configuration properties are overridable at runtime
Type |
Default |
|
---|---|---|
Directory where persistence information is hold Environment variable: |
string |
|
How long PostgreSQL will have to start before it times out. Value is milliseconds. Environment variable: |
long |
|
Optionally configurable port for the postgresql server. If not set, 62537 is picked. Environment variable: |
int |
|
Set string type Environment variable: |
string |
|