Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/core / assertFencedWrites

Function: assertFencedWrites()

ts
function assertFencedWrites(stores): void;

Defined in: packages/core/src/stores/fenced.ts:25

Deployment-time assertion for queue hosts that require the full fence: throws a typed ConfigError naming each store that does NOT declare fencedWrites. A host that tolerates advisory meta or transcript writes simply never calls this. The shipped pair that satisfies it with transcripts present is @rulvar/store-sqlite: the store as the journal plus its transcripts() twin.

Parameters

ParameterType
stores{ journal: JournalStore; transcripts?: TranscriptStore; }
stores.journalJournalStore
stores.transcripts?TranscriptStore

Returns

void