Skip to main content

Module backend

Module backend 

Source
Expand description

The storage backend seam.

A Backend is the durable medium the corpus lives in: it loads documents into the in-memory working Store and flushes the store’s net changes back. Commands operate on the core Store and never touch the medium directly — they go through the injected backend, so the medium is swappable.

[MarkdownLocal] is the default (and, today, only) implementation: one markdown file per document in a local-filesystem inventory. Other media (a database, a remote service) would be alternative Backend impls, selected by the binary.

Traits§

Backend
A durable storage medium for the corpus.