pub fn run_snapshot( db_dir: &Path, keep_wal: bool, archive_wal: bool, retention: Option<u32>, ) -> Result<String, CliError>
Open dir and write snapshot.bin. Default truncates the WAL.
dir
snapshot.bin