Expose db change batches over control

This commit is contained in:
Eric Wendland 2026-05-17 20:32:36 +02:00
commit a44eef3126
8 changed files with 130 additions and 15 deletions

View file

@ -306,7 +306,7 @@ Automerge documents.
- `geth db status <name>` reports local path, schema metadata, and sync state.
- Nonexistent paths and invalid names produce clear errors.
- `[ ]` cr-sqlite change extraction.
- `[x]` cr-sqlite change extraction.
Acceptance criteria:
- `[x]` DB status detects whether `crsql_changes` exists.
- `[x]` DB status reports `crsql_changes` row count, columns, and max
@ -314,8 +314,7 @@ Automerge documents.
- `[x]` Tests use a temp SQLite DB and deterministic fixture changes.
- `[x]` The module can extract typed change batches from `crsql_changes`.
- `[x]` Schema hash/version metadata is included in extracted change batches.
- `[ ]` Extracted batches are exposed through a daemon control command or sync
protocol.
- `[x]` Extracted batches are exposed through `geth db changes`.
- `[ ]` DB sync over Iroh.
Acceptance criteria: