Sync / foldkit-durable

JournalStore

interface · packages/durable/src/journal.ts:363

interface JournalStore {
  readonly name: string
  readonly isolation: 'eventual' | 'read-committed' | 'serializable'
  readonly isolates?: 'transaction' | 'statement'
  readonly parentRowLock: boolean
}

What the store under a journal guarantees of concurrent writes. It has the shape of StoreCapabilities in @doeixd/metakit/store, which this package does not depend on: isolation is 'serializable' (as if one at a time), 'read-committed' (each statement reads what has committed) or 'eventual' (replicas merge later); isolates is how far that reaches, 'transaction' (a read and a later write in one transaction) or 'statement' (one statement or batch, taken when not said); parentRowLock is whether a write locks the row its rows hang on.

Members

JournalStore.name

property · packages/durable/src/journal.ts:364

readonly name: string

JournalStore.isolation

property · packages/durable/src/journal.ts:365

readonly isolation: 'eventual' | 'read-committed' | 'serializable'

JournalStore.isolates

property · packages/durable/src/journal.ts:366

readonly isolates?: 'transaction' | 'statement'

JournalStore.parentRowLock

property · packages/durable/src/journal.ts:367

readonly parentRowLock: boolean