oficina / docs Public

Clone
git clone https://amadan.net/oficina/docs

Plain git — no account needed to clone.

Download

Download this file

1-- The log epoch (live-push spec §3.1, slice 1b): a random value a push
2-- stream's `hello` and every fetch's Docs-Log-Epoch carry, so a client whose
3-- cursor belongs to a log that has since been rewound (a restore, a move, a
4-- re-provisioned team) resyncs from the start. One row. boot counts the
5-- process starts that found the database where the last one left it; a
6-- copy of both beside the database file is how a start tells (logepoch.go).
7CREATE TABLE IF NOT EXISTS docs_log_epoch (
8 id INTEGER PRIMARY KEY CHECK (id = 1),
9 epoch TEXT NOT NULL,
10 boot INTEGER NOT NULL DEFAULT 0
11);
12