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
| Parameter | Type |
|---|---|
stores | { journal: JournalStore; transcripts?: TranscriptStore; } |
stores.journal | JournalStore |
stores.transcripts? | TranscriptStore |
Returns
void