pub struct PackOptions {
pub lock: LockMode,
pub indexes: bool,
pub exclude_tables: Vec<String>,
pub include: Vec<PackInclude>,
pub encryption: Option<CipherOptions>,
pub extra: Vec<(String, Vec<u8>)>,
pub limits: PackLimits,
}Fields§
§lock: LockModeHow the writer lock is taken for the length of the read. As in super::BackupOptions.
indexes: boolAlso pack the <table>.idx snapshots (caches; off by default).
exclude_tables: Vec<String>Tables whose data is left out of the archive and its manifest — see
super::BackupOptions::exclude_tables.
include: Vec<PackInclude>Further databases living in subfolders of the directory being packed (a Universe with its Projects, say), each with its own tables to leave out. They travel in the same archive under their folder name, each with a manifest of its own, and are unpacked together.
encryption: Option<CipherOptions>The keys of the packed directory’s database when it is encrypted. The pack carries its files sealed, exactly as they are on disk; the keys are only needed to read which files they are.
extra: Vec<(String, Vec<u8>)>Files of the caller’s own to store next to the database files (a manifest of the application’s
format, say), as (name inside the archive, bytes). Read back with read_pack_entry.
limits: PackLimits