Class PgBuilder

java.lang.Object
io.vertx.mutiny.pgclient.PgBuilder
All Implemented Interfaces:
MutinyDelegate

public class PgBuilder extends Object implements MutinyDelegate
Entry point for building PostgreSQL clients.

NOTE: This class has been automatically generated from the original non Mutiny-ified interface.

See Also:
  • PgBuilder
  • Field Details

  • Constructor Details

    • PgBuilder

      public PgBuilder(io.vertx.pgclient.PgBuilder delegate)
      Create a new instance of PgBuilder delegating to the given (non-null) instance of PgBuilder.
    • PgBuilder

      public PgBuilder(Object delegate)
  • Method Details

    • getDelegate

      public io.vertx.pgclient.PgBuilder getDelegate()
      Get the delegate instance.

      This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.

      Specified by:
      getDelegate in interface MutinyDelegate
      Returns:
      the delegate instance
    • pool

      public static Pool pool(Consumer<ClientBuilder<Pool>> block)
      Build a pool with the specified block argument. The block argument is usually a lambda that configures the provided builder

      Example usage: Pool pool = PgBuilder.pool(builder -> builder.connectingTo(connectOptions));

      Returns:
      the pool as configured by the code block
    • pool

      public static ClientBuilder<Pool> pool()
      Provide a builder for PostgreSQL pool of connections

      Example usage: Pool pool = PgBuilder.pool().connectingTo(connectOptions).build()

    • client

      public static SqlClient client(Consumer<ClientBuilder<SqlClient>> handler)
      Build a client backed by a connection pool with the specified block argument. The block argument is usually a lambda that configures the provided builder

      Example usage: SqlClient client = PgBuilder.client(builder -> builder.connectingTo(connectOptions));

      Returns:
      the client as configured by the code block
    • client

      public static ClientBuilder<SqlClient> client()
      Provide a builder for PostgreSQL client backed by a connection pool.

      Example usage: SqlClient client = PgBuilder.client().connectingTo(connectOptions).build()

    • newInstance

      public static PgBuilder newInstance(io.vertx.pgclient.PgBuilder delegate)
      Creates a new instance of the PgBuilder.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object