Add crsql changes metadata status
This commit is contained in:
parent
e039a4f81f
commit
677945073b
8 changed files with 182 additions and 15 deletions
|
|
@ -94,8 +94,10 @@ blobs. Iroh-blobs, providers, encrypted blobs, richer cache policies, manifests,
|
|||
and file sync trees are future work.
|
||||
|
||||
`geth-db` currently registers local SQLite paths as DB resources and reports
|
||||
local-only sync status plus a read-only SQLite schema summary/hash. cr-sqlite
|
||||
loading, change extraction, and DB sync are future work.
|
||||
local-only sync status plus a read-only SQLite schema summary/hash. It also
|
||||
inspects `crsql_changes` metadata when that table or view exists, reporting
|
||||
change count, columns, and max `db_version`. Loading cr-sqlite, extracting
|
||||
change batches, applying changes, and DB sync are future work.
|
||||
|
||||
`geth-kv` currently provides a SQLite-backed local fallback for named KV stores
|
||||
through `kv create/set/get`. Iroh Documents namespaces, prefix authorization
|
||||
|
|
|
|||
|
|
@ -304,9 +304,12 @@ Automerge documents.
|
|||
|
||||
- `[ ]` cr-sqlite change extraction.
|
||||
Acceptance criteria:
|
||||
- The module can read changes from `crsql_changes`.
|
||||
- Schema hash/version metadata is included in sync batches.
|
||||
- Tests use a temp SQLite DB and deterministic fixture changes.
|
||||
- `[x]` DB status detects whether `crsql_changes` exists.
|
||||
- `[x]` DB status reports `crsql_changes` row count, columns, and max
|
||||
`db_version` when available.
|
||||
- `[x]` Tests use a temp SQLite DB and deterministic fixture changes.
|
||||
- `[ ]` The module can extract typed change batches from `crsql_changes`.
|
||||
- `[ ]` Schema hash/version metadata is included in sync batches.
|
||||
|
||||
- `[ ]` DB sync over Iroh.
|
||||
Acceptance criteria:
|
||||
|
|
|
|||
Loading…
Reference in a new issue