Skip to content
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

Add an indicator to the Statement object that it should be closed after use #275

Open
steveannett opened this issue Nov 9, 2022 · 1 comment

Comments

@steveannett
Copy link

Currently when using a Statement object there is no indication for the underlying implementation whether the statement should be closed or left open.

It would be good if Statement.java could have a boolean value that could be set when building that could indicate to the implementation that the user wishes to close the statement, e.g. Statement releaseAfterwards();

@mp911de
Copy link
Member

mp911de commented Nov 9, 2022

We don't have a notion of 'open' in R2DBC, so we cannot introduce a notion of closing statements.

I understand the desire to close prepared statements at some point. Not all statements qualify for closing, only those that require server preparation.

In the drivers where this applies, drivers decided to provide a configurable strategy (FIFO, round robin, close after use) to release statements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants