Expand description
Atomic document operations for apps that declare document-shaped persistence.
Structsยง
- Document
Snapshot - Holds the authoritative representation used by a subsequent compare-and-write.
Constantsยง
- MAX_
DOCUMENT_ ๐BYTES
Functionsยง
- claim_
worker - Claims document-backed work before any external delivery. App writes reject an active lease, and a crashed worker releases ownership through expiry.
- compare_
and_ ๐write - Writes the exact previously read representation through one guarded mutation.
- complete_
worker - Completes only the claimed document version, atomically releasing its lease.
- has_
due_ work - Checks only declared document queue sections, without relational projection.
- live_
worker_ ๐lease - Tests persisted lease ownership using the shared epoch-clock representation.
- read_
document - Reads exactly one declared document without exporting any other app entities.
- write_
document - Commits one changed document atomically and rejects a stale snapshot.