List of usage examples for io.vertx.pgclient PgConnection connect
static void connect(Vertx vertx, Handler<AsyncResult<PgConnection>> handler)
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();/*from ww w . j ava2s .c o m*/ // Create the connection from the environment variables PgConnection.connect(vertx, res -> { // Handling your connection }); }