Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The new PreparedStatement interface is listed below. See discussion in halvardssm/stdext#6 for some background.
This avoids the need for separate bind/step/reset calls. Instead, statements now just take a single call to either return all results, or an iterator of result chunks.
Additionally, this splits out query methods into separate calls for object rows vs array rows.
This simplifies the driver API enough that it can be used directly by client code, versus the previous iteration that felt like you absolutely need a wrapping API.
This loses some flexibility:
Those were not likely to be real use cases anyway, and the underlying drivers typically did not support those properly either.
This now also moves some options from the prepare call to the query call, so you can use the same prepared statement with different options.
TODO: