Class PgClientFactory
java.lang.Object
io.micronaut.configuration.vertx.pg.client.PgClientFactory
The Factory for creating Vert.x Pg client.
-
Constructor Summary
ConstructorsConstructorDescriptionPgClientFactory(PgClientConfiguration connectionConfiguration, @Nullable io.vertx.core.Vertx vertx) Create the factory with given Pg Client configuration. -
Method Summary
-
Constructor Details
-
PgClientFactory
public PgClientFactory(PgClientConfiguration connectionConfiguration, @Nullable @Nullable io.vertx.core.Vertx vertx) Create the factory with given Pg Client configuration.- Parameters:
connectionConfiguration- The Pg client configurationvertx- The Vert.x instance
-
-
Method Details
-
client
@Singleton @Requires(missingBeans=io.vertx.sqlclient.Pool.class) @Bean(preDestroy="close") public io.vertx.sqlclient.Pool client()- Returns:
- client A pool of connections.
-