Skip to content

Add support for RefCursor #229

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 27, 2020
Merged

Add support for RefCursor #229

merged 2 commits into from
Jan 27, 2020

Conversation

mp911de
Copy link
Collaborator

@mp911de mp911de commented Jan 21, 2020

We now can decode a RefCursor from a Row and fetch the data that the cursor holds.

RefCursor cursor = row.get("my_store_procedure", RefCursor.class);

// later
cursor.fetch().then(cursor.close());

[closes #173]

/cc @Squiry @davecramer

To supply attached RefCursor objects that can fetch a cursor, we need to
pass on various types of objects, one of them is a connection object.

We now encapsulate the connection, codecs and client within a
ConnectionContext object to ensure that we don't need to add further
constructor arguments across all involved types.

[#173]
We now can decode a RefCursor from a Row and fetch the data that the cursor holds.

RefCursor cursor = row.get("my_store_procedure", RefCursor.class);

// later
cursor.fetch().then(cursor.close());

[closes #173]
@mp911de mp911de added the type: enhancement A general enhancement label Jan 21, 2020
@mp911de mp911de added this to the 0.9.0.M1 milestone Jan 21, 2020
@gregturn gregturn merged commit f5cca8e into master Jan 27, 2020
@gregturn gregturn deleted the refcursor branch January 27, 2020 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enable consumption of REFCURSOR
2 participants