Re: [sqlite] Change the update hook from the update hook?

2018-01-14 Thread Gwendal Roué
For the record, removing the update hook from the update hook works as expected in both SQLite 3.19.3 and 3.21, with a connection which is opened with the SQLITE_OPEN_NOMUTEX flag, and the guarantee that no two threads use the same connection at the same time. But I'm just not sure if this is a

[sqlite] Change the update hook from the update hook?

2018-01-14 Thread Gwendal Roué
Hello, Is it valid to change the update hook from the update hook itself? The reason for this question is the following: when a notified database change makes it useless to perform further observation, one may want to remove the update hook alltogether. Can it be done from the update hook itsel