pub fn create_snapshot(
db_dir: &Path,
snapshots_dir: &Path,
channel: &str,
code_version: &str,
) -> Result<PathBuf, SnapshotError>Expand description
Snapshot the SQLite DBs in db_dir to a new directory under
snapshots_dir. The snapshot dir is named
<channel>-pre-v<code_version>-<ISO8601>.bak. Uses VACUUM INTO for
atomic, WAL-consistent copies. Returns the new snapshot dir.