public interface PostgresqlConnection
extends io.r2dbc.spi.Connection
Connection
for connecting to a PostgreSQL database.Modifier and Type | Method and Description |
---|---|
Mono<Void> |
beginTransaction() |
Mono<Void> |
close() |
Mono<Void> |
commitTransaction() |
PostgresqlBatch |
createBatch() |
Mono<Void> |
createSavepoint(String name) |
PostgresqlStatement |
createStatement(String sql) |
PostgresqlConnectionMetadata |
getMetadata() |
Flux<Notification> |
getNotifications()
|
io.r2dbc.spi.IsolationLevel |
getTransactionIsolationLevel() |
boolean |
isAutoCommit() |
Mono<Void> |
releaseSavepoint(String name) |
Mono<Void> |
rollbackTransaction() |
Mono<Void> |
rollbackTransactionToSavepoint(String name) |
Mono<Void> |
setAutoCommit(boolean autoCommit) |
Mono<Void> |
setTransactionIsolationLevel(io.r2dbc.spi.IsolationLevel isolationLevel) |
String |
toString() |
Mono<Boolean> |
validate(io.r2dbc.spi.ValidationDepth depth) |
Mono<Void> beginTransaction()
beginTransaction
in interface io.r2dbc.spi.Connection
Mono<Void> close()
close
in interface io.r2dbc.spi.Closeable
close
in interface io.r2dbc.spi.Connection
Mono<Void> commitTransaction()
commitTransaction
in interface io.r2dbc.spi.Connection
PostgresqlBatch createBatch()
createBatch
in interface io.r2dbc.spi.Connection
Mono<Void> createSavepoint(String name)
createSavepoint
in interface io.r2dbc.spi.Connection
PostgresqlStatement createStatement(String sql)
createStatement
in interface io.r2dbc.spi.Connection
Flux<Notification> getNotifications()
Flux
of Notification
received from LISTEN
registrations. The stream is a hot stream producing messages as they are received. Notifications received by this
connection are published as they are received. When the client gets closed
, the subscription completes normally
. Otherwise (transport
connection disconnected unintentionally) with an error
.Flux
of Notifications
.PostgresqlConnectionMetadata getMetadata()
getMetadata
in interface io.r2dbc.spi.Connection
io.r2dbc.spi.IsolationLevel getTransactionIsolationLevel()
getTransactionIsolationLevel
in interface io.r2dbc.spi.Connection
boolean isAutoCommit()
isAutoCommit
in interface io.r2dbc.spi.Connection
Mono<Void> releaseSavepoint(String name)
releaseSavepoint
in interface io.r2dbc.spi.Connection
Mono<Void> rollbackTransaction()
rollbackTransaction
in interface io.r2dbc.spi.Connection
Mono<Void> rollbackTransactionToSavepoint(String name)
rollbackTransactionToSavepoint
in interface io.r2dbc.spi.Connection
Mono<Void> setAutoCommit(boolean autoCommit)
setAutoCommit
in interface io.r2dbc.spi.Connection
Mono<Void> setTransactionIsolationLevel(io.r2dbc.spi.IsolationLevel isolationLevel)
setTransactionIsolationLevel
in interface io.r2dbc.spi.Connection
Copyright © 2020. All rights reserved.