SIGN IN SIGN UP

Add updateHook (#604)

* Add updateHook

A wrapper around sqlite3_update_hook.

For now only as a low-level operation to Database.

To be useful in projects it will probably need some wrapping in the
worker but right now I have no idea yet how that should look.

* Allow removing the updateHook callback

Also release the callback function when the callback is removed or the
database is closed.

Include the previously omitted database name in the callback args as the
sqlite callback does.

---------

Co-authored-by: Erik Soehnel <erik.soehnel@gmail.com>
E
Erik Söhnel committed
8fa6fece479d8da0be1fb25409698c7022fdf14d
Parent: 1ae2bbe
Committed by GitHub <noreply@github.com> on 3/14/2025, 3:46:28 PM