SQLite has Data Change Notification Callbacks available in the C API. Can these callbacks be used from the SQLite CLI, or from Bash or from Python?
If so, how?
SQLite has Data Change Notification Callbacks available in the C API. Can these callbacks be used from the SQLite CLI, or from Bash or from Python?
If so, how?
Reading through the SQLite source code, it doesn't look like that function is used anywhere in the CLI source code, so I doubt you can do it via the CLI.
Not sure what you mean by that.
It's not exposed via the standard
sqlite3
module, but you can use it with thectypes
module.Here's a quick n' dirty example of using it via
ctypes
......which prints out...
...on the first run and...
...on the second run.