pub async fn rebuild_current(conn: &Connection) -> Result<RebuildReport>Expand description
Rebuild the materialized current-belief table from links (§5.8).
One BEGIN IMMEDIATE … COMMIT. The empty window between the DELETE and
the INSERT is the whole of current belief, so a failure across it — or a
concurrent reader landing in it — sees a graph with no edges and no error.
The transaction is what makes the repair a repair rather than a second way
to lose the table.