Skip to main content

Module page_history_spec_files

Module page_history_spec_files 

Source
Expand description

The files each page-history version’s private specs reference.

Append-only, because history is. A restore has to be able to bring back a version whose specs name these files, so recording them here keeps crate::exercise_spec_uploads’ reaper away from a file for as long as any snapshot names it.

Only the private specs’: a restore re-derives the other two, so an old version’s derived files are never brought back.

Functions§

insert_many
Records the files the private specs of one history version name. Duplicates within file_upload_ids collapse: several tasks in a page may name the same file, and one row per version and file is all a reference check needs.