Skip to content

Problem with ValueObservation when changes are made on the raw SQLite connection using the C API #1457

Answered by groue
gerdemb asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @gerdemb,

Thanks for the compliment!

You're not doing anything wrong, but ValueObservation does not detect changes performed by sqlite3session_apply. There is no way with the current api to make it work.

Your best option is to cancel and restart the observation after the transaction that calls this function has completed. This is somewhat brutal: your app will have to process fresh values even if sqlite3session_apply did not actually modify the observed region. If you know the content of the change set, you may avoid useless observation restarts.


A rationale for the suggested solution

The library relies on the Compile-Time Authorization Callbacks in order to know which tables and c…

Replies: 2 comments 9 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by gerdemb
Comment options

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

@gerdemb
Comment options

@groue
Comment options

@gerdemb
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