0
0
mirror of https://github.com/tursodatabase/libsql.git synced 2025-06-11 09:46:53 +00:00
Commit Graph

2 Commits

Author SHA1 Message Date
217ecb84b5 sqlite3 virtual wal v2
Refactor of the virtual wal API. Drop global wals in favor of passing
the wal implementation as an argument to libsql_open.

The WAL interface is split in two sets of virtual methods:
- `create_wal` is passed when opening a sqlite connection. It's role is
  to instantiate a wal.
- `libql_wal` is the wal itself, created by the `create_wal`.

The sqlite3_wal and `sqlite3_create_wal` implementation are completely
decoupled from the wal implementation. They are the default
implementation when using the traditional open methods, and
sqlite3_create_wal is exposed as a global variable, and can be composed
with other wal implementations.
2023-11-30 11:24:47 +01:00
bf899d0b9a restructure repository 2023-10-16 13:58:16 +02:00