tursodatabase / libsql

libSQL is a fork of SQLite that is both Open Source, and Open Contributions.

Home Page:https://turso.tech/libsql

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[C Bindings] Missing hook function

ospfranco opened this issue · comments

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.

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

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

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