List of usage examples for io.vertx.pgclient PgPool pool
static PgPool pool()
From source file:examples.PgClientExamples.java
License:Apache License
public void configureFromEnv(Vertx vertx) { // Create the pool from the environment variables PgPool pool = PgPool.pool(); // Create the connection from the environment variables PgConnection.connect(vertx, res -> { // Handling your connection });//from w ww . j a v a 2s .c o m }