Here is what I need:
Here is what I am exloring:
Any wise man out there to nudge me in a right direction?
SQLite trigger may be specified to fire whenever a DELETE, INSERT or UPDATE of a particular database table occurs or whenever an UPDATE occurs on one or more specified columns of a table. At this time, SQLite supports only FOR EACH ROW triggers, not FOR EACH STATEMENT triggers.
Action for the trigger, it is the sql statement. There is two SQLite extension to triggers 'OLD' and 'NEW'.
You can listen for the 'trace' event emitted from the sqlite module. There is currently no way to intercept or stop queries in the module, so the most you can do is listen for this event which is emitted immediately when a query is executed and create your logic from there.
https://github.com/mapbox/node-sqlite3/wiki/Debugging
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With