Package io.vertx.mutiny.pgclient
Class PgBuilder
java.lang.Object
io.vertx.mutiny.pgclient.PgBuilder
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClientBuilder<SqlClient>client()Provide a builder for PostgreSQL client backed by a connection pool.static SqlClientclient(Consumer<ClientBuilder<SqlClient>> handler) Build a client backed by a connection pool with the specifiedblockargument.booleanio.vertx.pgclient.PgBuilderGet the delegate instance.inthashCode()static PgBuildernewInstance(io.vertx.pgclient.PgBuilder delegate) Creates a new instance of thePgBuilder.static ClientBuilder<Pool>pool()Provide a builder for PostgreSQL pool of connectionsstatic Poolpool(Consumer<ClientBuilder<Pool>> block) Build a pool with the specifiedblockargument.toString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
PgBuilder
public PgBuilder(io.vertx.pgclient.PgBuilder delegate) Create a new instance ofPgBuilderdelegating to the given (non-null) instance ofPgBuilder. -
PgBuilder
-
-
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:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
pool
Build a pool with the specifiedblockargument. Theblockargument is usually a lambda that configures the provided builderExample usage:
Pool pool = PgBuilder.pool(builder -> builder.connectingTo(connectOptions));- Returns:
- the pool as configured by the code
block
-
pool
Provide a builder for PostgreSQL pool of connectionsExample usage:
Pool pool = PgBuilder.pool().connectingTo(connectOptions).build() -
client
Build a client backed by a connection pool with the specifiedblockargument. Theblockargument is usually a lambda that configures the provided builderExample usage:
SqlClient client = PgBuilder.client(builder -> builder.connectingTo(connectOptions));- Returns:
- the client as configured by the code
block
-
client
Provide a builder for PostgreSQL client backed by a connection pool.Example usage:
SqlClient client = PgBuilder.client().connectingTo(connectOptions).build() -
newInstance
Creates a new instance of thePgBuilder. -
hashCode
public int hashCode() -
equals
-
toString
-