Interface PostgresqlConnection
- All Superinterfaces:
 Closeable, Connection
A 
Connection for connecting to a PostgreSQL database.- 
Method Summary
Modifier and TypeMethodDescriptionbeginTransaction(TransactionDefinition definition) Cancel currently running query by sendingCancelRequestto a server.close()Obtain aCopyInBuilderto configure aCOPY FROM STDINoperation for very fast copying into a database table.UseCOPY FROM STDINfor very fast copying into a database table.createSavepoint(String name) createStatement(String sql) booleanreleaseSavepoint(String name) setAutoCommit(boolean autoCommit) setLockWaitTimeout(Duration lockTimeout) Sets Lock Acquisition Timeout throughSET LOCK_TIMEOUT.setStatementTimeout(Duration statementTimeout) Sets Statement Timeout throughSET STATEMENT_TIMEOUT.setTransactionIsolationLevel(IsolationLevel isolationLevel) toString()validate(ValidationDepth depth)  
- 
Method Details
- 
beginTransaction
- Specified by:
 beginTransactionin interfaceConnection
 - 
beginTransaction
- Specified by:
 beginTransactionin interfaceConnection- See Also:
 
 - 
close
 - 
commitTransaction
- Specified by:
 commitTransactionin interfaceConnection
 - 
copyIn
Obtain aCopyInBuilderto configure aCOPY FROM STDINoperation for very fast copying into a database table.- Parameters:
 sql- the COPY … FROM STDIN sql statement- Returns:
 - the builder to configure the copy operation.
 - Since:
 - 1.0
 
 - 
copyIn
 - 
createBatch
PostgresqlBatch createBatch()- Specified by:
 createBatchin interfaceConnection
 - 
createSavepoint
- Specified by:
 createSavepointin interfaceConnection
 - 
createStatement
- Specified by:
 createStatementin interfaceConnection
 - 
getNotifications
Flux<Notification> getNotifications()Return aFluxofNotificationreceived fromLISTENregistrations. 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 getsclosed, the subscriptioncompletes normally. Otherwise (transport connection disconnected unintentionally) with anerror.- Returns:
 - a hot 
FluxofNotifications 
 - 
cancelRequest
Cancel currently running query by sendingCancelRequestto a server.- Returns:
 - a 
Monothat indicates that a cancel frame was delivered to the backend - Since:
 - 0.9
 
 - 
getMetadata
PostgresqlConnectionMetadata getMetadata()- Specified by:
 getMetadatain interfaceConnection
 - 
getTransactionIsolationLevel
IsolationLevel getTransactionIsolationLevel()- Specified by:
 getTransactionIsolationLevelin interfaceConnection
 - 
isAutoCommit
boolean isAutoCommit()- Specified by:
 isAutoCommitin interfaceConnection
 - 
releaseSavepoint
- Specified by:
 releaseSavepointin interfaceConnection
 - 
rollbackTransaction
- Specified by:
 rollbackTransactionin interfaceConnection
 - 
rollbackTransactionToSavepoint
- Specified by:
 rollbackTransactionToSavepointin interfaceConnection
 - 
setAutoCommit
- Specified by:
 setAutoCommitin interfaceConnection
 - 
setLockWaitTimeout
Sets Lock Acquisition Timeout throughSET LOCK_TIMEOUT.- Specified by:
 setLockWaitTimeoutin interfaceConnection- Returns:
 - a 
Monothat indicates that a lockTimeout frame was delivered to the backend - Since:
 - 0.8.9
 
 - 
setStatementTimeout
Sets Statement Timeout throughSET STATEMENT_TIMEOUT.- Specified by:
 setStatementTimeoutin interfaceConnection- Returns:
 - a 
Monothat indicates that a statementTimeout frame was delivered to the backend - Since:
 - 0.8.9
 
 - 
setTransactionIsolationLevel
- Specified by:
 setTransactionIsolationLevelin interfaceConnection
 - 
toString
 - 
validate
- Specified by:
 validatein interfaceConnection
 
 -