Skip to content

Help with preupdate_hook internals #1799

Answered by groue
dj-jqpub asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @dj-jqpub,

You'll find a similar question in #1608

Unless I'm mistaken, the pre-update hook is not used by default in GRDB. But one can't reasonably use the pre-update hook without the commit and rollback hooks, owned by GRDB.

I should also mention the authorization hook. It makes it possible to discard update events that are rollbacked in an intermediate savepoint. Of course GRDB owns it as well.

If you want to install your own hooks with the SQLite C interface, you do indeed find GRDB on your way. Are we on the same track?


The root problem is that SQLite APIs do not allow the installation of several hooks. All libraries that need a given hook are, to be short, mutually incompatible.

Replies: 2 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dj-jqpub
Comment options

You must be logged in to vote
7 replies
@groue
Comment options

@dj-jqpub
Comment options

@groue
Comment options

@dj-jqpub
Comment options

@groue
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants