tursodatabase / libsql

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

libsql wal replicator #1652

Closed MarinPostma closed 3 months ago

MarinPostma commented 3 months ago

In this PR, we abstract the injector logic from libqsl-replicator into the Injector trait. The former Injector now becomes SqliteInjector and we introduce a new LibsqlInjector that uses libsql wal to perform injection. We also extend the replication protocol handshake so that clients can request a prefered wal version.