public final class PostgresqlConnectionFactory extends Object implements io.r2dbc.spi.ConnectionFactory
ConnectionFactory
for creating connections to a PostgreSQL database.Constructor and Description |
---|
PostgresqlConnectionFactory(PostgresqlConnectionConfiguration configuration)
Creates a new connection factory.
|
Modifier and Type | Method and Description |
---|---|
Mono<PostgresqlConnection> |
create() |
io.r2dbc.spi.ConnectionFactoryMetadata |
getMetadata() |
Mono<PostgresqlReplicationConnection> |
replication()
Creates a new
PostgresqlReplicationConnection for interaction with replication streams. |
String |
toString() |
public PostgresqlConnectionFactory(PostgresqlConnectionConfiguration configuration)
configuration
- the configuration to use connectionsIllegalArgumentException
- if configuration
is null
public Mono<PostgresqlConnection> create()
create
in interface io.r2dbc.spi.ConnectionFactory
public Mono<PostgresqlReplicationConnection> replication()
PostgresqlReplicationConnection
for interaction with replication streams.PostgresqlReplicationConnection
for interaction with replication streams.public io.r2dbc.spi.ConnectionFactoryMetadata getMetadata()
getMetadata
in interface io.r2dbc.spi.ConnectionFactory
Copyright © 2020. All rights reserved.