tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.
https://turso.tech/libsql
MIT License
11.31k stars 286 forks source link

[C Bindings] Missing hook function #1418

Open ospfranco opened 5 months ago

ospfranco commented 5 months ago

The sqlite update/commit/rollback hooks are necessary to implement reactive queries as they notify of changes made on tables and rows.

They appear to be missing from the C headers.

haaawk commented 5 months ago

I'm not sure this is something we support at the moment. We might for local only and maybe for embedded replicas but I'm pretty sure we don't support such thing for remote only clients

ospfranco commented 5 months ago

I'm using it for reactive queries. In case you want that functionality this will need to be enabled.

penberg commented 5 months ago

We should expose the hooks to local databases, as discussed here: https://discord.com/channels/933071162680958986/1154725980183732224/1245079190684958861

ignatz commented 2 months ago

Is there any update? Are you open towards external contributions?

ignatz commented 1 month ago

Friendly ping. I'm considering to give this a shot.