Skip to main content

Interface: EntryStoreView<TProps>

Defined in: model/dataset.ts:21

The Dataset's own read view onto its entries. Every row it hands back is a live Entry and answers for now (ADR 0017).

Two questions hide in one word. Which rows exist is this collection's question, and all answers it as of the last commit — see the cached-identity rule and what it does not show while a transaction is open. What a row is worth is the row's own question, and every Entry in that array answers it now. get/has/size are the live membership doors.

Extended by​

Type Parameters​

TProps​

TProps = Record<string, unknown>

Properties​

all​

readonly all: readonly Entry<TProps>[]

Defined in: model/dataset.ts:22


size​

readonly size: number

Defined in: model/dataset.ts:25


storedValues​

readonly storedValues: ReadonlyMap<EntryId, StoredEntry<TProps>>

Defined in: model/dataset.ts:33

The committed rows as stored values, keyed by id — what the edit pipeline carries (ADR 0017, P4). A drag preview hands this straight to the extension hook as EditRequest.entries, which is committed-only by contract. One map identity per commit, so a frame that reads it allocates nothing (I5).

A reader asking what a row is worth now wants get(id) and the live Entry. This door exists for the one caller that must not read now: a cascade computing a delta.

Methods​

get()​

get(id): Entry<TProps> | undefined

Defined in: model/dataset.ts:23

Parameters​

id​

string | EntryId

Returns​

Entry<TProps> | undefined


has()​

has(id): boolean

Defined in: model/dataset.ts:24

Parameters​

id​

string | EntryId

Returns​

boolean