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