Simple Java library for easy PostgreSQL password files loading
You can pull PgPass from the central maven repository, just add these to your pom.xml file:
<dependency>
<groupId>com.github.technology16</groupId>
<artifactId>pgpass</artifactId>
<version>2.0.1</version>
</dependency>
API is simple. Currently static getters are available:
// Look at default location
PgPass.get(String host, String port, String dbName, String user)
// Look at provided location
PgPass.get(Path pgPassPath, String host, String port, String dbName, String user)
// Returns all PgPassEntry from default location
PgPass.getAll()
// Returns all PgPassEntry from provided location
PgPass.get(Path pgPassPath)
// Return pgpass file default location
PgPass.getPgPassPath()
docker-compose -f docker-compose.test.yml run --rm t1
This application is licensed under the Apache License, Version 2.0. See LICENCE for details.