Expand description
Shadow WAL implementation for walrust
The shadow WAL provides a staging area for WAL frames that decouples the upload process from SQLite’s active WAL file. This matches Litestream’s architecture and provides several benefits:
- No file contention with SQLite during uploads
- Checkpoint control - we prevent auto-checkpoints
- Preserved history - shadow keeps frames even after checkpoint
- Decoupled I/O - upload doesn’t block write path
Structs§
- Shadow
Segment - A segment file in the shadow WAL
- Shadow
Wal - Shadow WAL manager for a single database