-
-
Notifications
You must be signed in to change notification settings - Fork 841
Closed
Labels
Description
Sqlite features data-change notification callbacks that tell you when a particular table has been modified. This is super useful for writing realtime, reactive web servers, that notify all connected clients when data has changed. But there's no support for this notification API in node-sqlite3.
Would bindings for this be easy to add to node-sqlite3? I understand that sqlite runs in a different thread, so I imagine that the thread would need to communicate with the v8 thread, to call a notification method, and just pass it these parameters:
- A string
"insert"
,"delete"
, or"update"
describing the type of change - The database
- The table name
- The
rowid
of the row
r-ichard, carbureted, ecoenghk, mattpowell, wenerme and 5 more