libsql icon indicating copy to clipboard operation
libsql copied to clipboard

[C Bindings] Missing hook function

Open ospfranco opened this issue 1 year ago • 7 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.

ospfranco avatar May 25 '24 06:05 ospfranco

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

haaawk avatar May 25 '24 07:05 haaawk

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

ospfranco avatar May 26 '24 05:05 ospfranco

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

penberg avatar Jun 03 '24 18:06 penberg

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

ignatz avatar Sep 04 '24 16:09 ignatz

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

ignatz avatar Oct 08 '24 13:10 ignatz

Friendly ping. Is there any update? Would you welcome a contribution?

ignatz avatar Nov 18 '24 11:11 ignatz

Sent out https://github.com/tursodatabase/libsql/pull/1839 as an RFC.

ignatz avatar Nov 24 '24 11:11 ignatz