SQLite Forum

Best way to observe database operations
Login
"Processes", so different threads. Compile for multi-threading and use the pre-update hook. 

See also:

https://sqlite.org/threadsafe.html

https://www.sqlite.org/capi3ref.html#sqlite3_preupdate_count