Skip to main content

Module storage

Module storage 

Source
Expand description

Central SQLite state store (PRD §10, §11).

One database for every download, in the platform’s data directory — not a sidecar .part.json next to each file. That is what makes rget list, rget resume --all and cross-run recovery possible.

Durability rules live in docs/CRASH_CONSISTENCY.md. The one that matters here: Store::commit_progress is the only way range progress becomes persistent, it is a single transaction, and the engine calls it only after an fdatasync of the destination file.

Structs§

DownloadRecord
ProgressUpdate
One durable progress update, produced by the committer after its barrier.
RangeRecord
Store

Enums§

RangeState
Status

Constants§

OPEN_END
Sentinel end for a range whose length is unknown (no Content-Length). Round-trips through SQLite’s i64 columns unlike u64::MAX.

Functions§

mint_cookie
A random 128-bit token, used as the destination file’s identity cookie.
now