public interface RefCursor
extends io.r2dbc.spi.Closeable
PostgresqlConnection which allows interaction with the cursor object by fetching the cursor and
closing it.
Cursor objects are stateful resources. Obtaining a cursor typically keeps the cursor open on the database server. The cursor object can get invalidated if the transaction is closed. Cursor
objects should be closed if they are no longer required.
Detached cursors that were instantiated without a connection may throw UnsupportedOperationException when attempting to fetch or close the cursor.| Modifier and Type | Method and Description |
|---|---|
Mono<Void> |
close()
Close the cursor.
|
Mono<PostgresqlResult> |
fetch()
Fetch the contents of the cursor using
FETCH ALL IN. |
String |
getCursorName()
Return the ref cursor name (portal name).
|
String getCursorName()
Mono<PostgresqlResult> fetch()
FETCH ALL IN.PostgresqlResult associated with the ref cursor.Copyright © 2024. All rights reserved.