javadoc

Install

<dependency>
  <groupId>com.github.enesusta</groupId>
  <artifactId>jdbc-starter</artifactId>
  <version>1.0.5</version>
</dependency>

Example:

JdbcConfiguration configuration = new JdbcConfiguration.JdbcConfigurationBuilder()
            .username("username")
            .password("password")
            .type(DatabaseType.POSTGRE)
            .host("localhost")
            .selectedDatabase("docker")
            .options(
                Arrays.asList(new JdbcOption(ConnectionOptions.CHARACTER_ENCODING, "utf8"))
            )
//            .jdbcUrl("jdbc:postgresql://localhost:5432/docker?characterEncoding=utf8")
            .build();

        jdbcDataSource = new HikariJdbcDataSource(configuration);
        dataSource = jdbcDataSource.getDataSource();