[RFC] Initial test of database_binder_hooks and Query Cancel #96
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.
Hi,
this is my initial vision of an interface for having custom hooks into the inner workings of the library.
Its not complete yet i just posted it for review and to see what you guyes think about it. And if its a worthy addtion to the project or if it just makes it more complex for no real gain.
I have a little test case implemented that basicly just logs every sql_step with pre and post hook.
This might seem like a total nonfeature but it already showed a bug in the current master i will explain in another post. And would help people to log their SQL statments or have a custom mutex scheme around sqlite3_step.
There is another addition to the standard way the Lib works in that youre lambda can return a bool now to break out of an select query processing. I needed that for example to exit a thread that processes a very long query gracefully.