Metakit / @doeixd/metakit/store

Isolates

type · packages/metakit/src/store.ts:30

type Isolates = 'transaction' | 'statement'

How far a store's isolation reaches. transaction: a transaction that reads, then writes in a later round trip, is isolated as a whole (SQLite through one connection, Postgres, a step in memory). statement: one statement, or one batch, which cannot branch on what it read (D1), and no more: a read in one round trip and a write in the next can interleave with another writer.