public interface PostgresqlConnection extends 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()
|
IsolationLevel |
getTransactionIsolationLevel() |
boolean |
isAutoCommit() |
Mono<Void> |
releaseSavepoint(String name) |
Mono<Void> |
rollbackTransaction() |
Mono<Void> |
rollbackTransactionToSavepoint(String name) |
Mono<Void> |
setAutoCommit(boolean autoCommit) |
Mono<Void> |
setLockWaitTimeout(Duration lockTimeout)
Sets Lock Acquisition Timeout through
SET LOCK_TIMEOUT. |
Mono<Void> |
setStatementTimeout(Duration statementTimeout)
Sets Statement Timeout through
SET STATEMENT_TIMEOUT. |
Mono<Void> |
setTransactionIsolationLevel(IsolationLevel isolationLevel) |
String |
toString() |
Mono<Boolean> |
validate(ValidationDepth depth) |
Mono<Void> beginTransaction()
beginTransaction in interface ConnectionMono<Void> close()
close in interface Closeableclose in interface ConnectionMono<Void> commitTransaction()
commitTransaction in interface ConnectionPostgresqlBatch createBatch()
createBatch in interface ConnectionMono<Void> createSavepoint(String name)
createSavepoint in interface ConnectionPostgresqlStatement createStatement(String sql)
createStatement in interface ConnectionFlux<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 NotificationsPostgresqlConnectionMetadata getMetadata()
getMetadata in interface ConnectionIsolationLevel getTransactionIsolationLevel()
getTransactionIsolationLevel in interface Connectionboolean isAutoCommit()
isAutoCommit in interface ConnectionMono<Void> releaseSavepoint(String name)
releaseSavepoint in interface ConnectionMono<Void> rollbackTransaction()
rollbackTransaction in interface ConnectionMono<Void> rollbackTransactionToSavepoint(String name)
rollbackTransactionToSavepoint in interface ConnectionMono<Void> setAutoCommit(boolean autoCommit)
setAutoCommit in interface ConnectionMono<Void> setLockWaitTimeout(Duration lockTimeout)
SET LOCK_TIMEOUT.Mono that indicates that a lockTimeout frame was delivered to the backendMono<Void> setStatementTimeout(Duration statementTimeout)
SET STATEMENT_TIMEOUT.Mono that indicates that a statementTimeout frame was delivered to the backendMono<Void> setTransactionIsolationLevel(IsolationLevel isolationLevel)
setTransactionIsolationLevel in interface ConnectionMono<Boolean> validate(ValidationDepth depth)
validate in interface ConnectionCopyright © 2022. All rights reserved.