Example usage for io.vertx.pgclient PgPool pool

List of usage examples for io.vertx.pgclient PgPool pool

Introduction

In this page you can find the example usage for io.vertx.pgclient PgPool pool.

Prototype

static PgPool pool() 

Source Link

Document

Like #pool(PoolOptions) with a default poolOptions .

Usage

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
}