This is an example usage of registering an update_hook
to a SQLite connection. The motivation for exploring this feature is to test out various implementations of data monitoring interfaces.
A few notable properties of the implementation:
- The hook must be registered on the connection being used which requires clients to manually integrate this code.
- Each
INSERT
andUPDATE
operation requires a subsequentSELECT
to get the row data. - When registering the hook, increasing the
bufsize
under heavy workloads will improve throughput, but the SQLite library is single-threaded by design.