pub struct BackupOptions {
pub lock: LockMode,
pub indexes: bool,
pub exclude_tables: Vec<String>,
}Fields§
§lock: LockModeHow the writer lock is taken for the length of the copy. LockMode::Skip copies a database
a writer may be appending to, which can capture a half-written last line (the engine cuts
such a tail off on the next writable open) — but nothing worse.
indexes: boolAlso copy the <table>.idx snapshots. Off by default: they are caches the engine rebuilds
from the logs, so leaving them out makes a backup smaller and no less complete.
exclude_tables: Vec<String>Tables whose data (log files, partitions, images, snapshot) is left out; their declarations stay in the metadata document, so the copy opens with them empty. A name the database does not declare is refused.
Trait Implementations§
Source§impl Clone for BackupOptions
impl Clone for BackupOptions
Source§impl Debug for BackupOptions
impl Debug for BackupOptions
Auto Trait Implementations§
impl Freeze for BackupOptions
impl RefUnwindSafe for BackupOptions
impl Send for BackupOptions
impl Sync for BackupOptions
impl Unpin for BackupOptions
impl UnsafeUnpin for BackupOptions
impl UnwindSafe for BackupOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more