document_loro_isolation Client SQLite table
Updates a death left unattributed: a window of several updates, or one read by a lifetime that had already failed. While a scope has suspects its pulls ask for one update a page, so each is read alone and a later death counts toward it. One row per document scope.
Declared in packages/client-sdk/src/data/sqlite/schema/documentLoroWindowSchema.ts
Columns
app_kindtext- not null
Document scope and server document.
local_idtext- not null
Document scope and server document.
document_idtext- not null
Document scope and server document.
suspectstext- not null
The updates, as a JSON array. A page that commits removes those it served, and a completed pull removes the rest.
Keys and constraints
- Primary key
(app_kind, local_id)
DDL
The statements the client runs to create this table and its indexes.
CREATE TABLE IF NOT EXISTS "document_loro_isolation" (
"app_kind" TEXT NOT NULL,
"local_id" TEXT NOT NULL,
"document_id" TEXT NOT NULL,
"suspects" TEXT NOT NULL,
PRIMARY KEY ("app_kind", "local_id")
);