tursodatabase / libsql

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

c: add replicated data for sync #1629

Closed LucioFranco closed 1 month ago

LucioFranco commented 1 month ago

This adds a new replicated struct that is output during sync for the C bindings.

haaawk commented 1 month ago

This is a breaking change. It will break go-libsql and op-sqlite that use sync api. Please prepare PRs to update those two users of the API.

haaawk commented 1 month ago

This is a breaking change. It will break go-libsql and op-sqlite that use sync api. Please prepare PRs to update those two users of the API.

Also https://github.com/tursodatabase/libsql_android/

haaawk commented 1 month ago

I would much prefer to add a new function that returns frames sync as a total always growing value and don't do breaking changes at this point.