pub struct BackupDumpOptions {
pub schema_only: bool,
pub data_only: bool,
pub clean: bool,
pub create_database: bool,
pub no_owner: bool,
pub single_transaction: bool,
pub routines: bool,
pub triggers: bool,
}Expand description
Options for driver-native SQL database dumps.
Fields§
§schema_only: bool§data_only: bool§clean: boolEmit DROP TABLE IF EXISTS before each table.
create_database: boolEmit a driver-specific CREATE DATABASE preamble.
no_owner: boolOmit OWNER clauses (PostgreSQL); documented no-op when not emitted.
single_transaction: boolHint to wrap restore in a transaction (MySQL --single-transaction parity).
routines: boolInclude stored procedures and functions (MySQL).
triggers: boolInclude triggers (MySQL).
Trait Implementations§
Source§impl Clone for BackupDumpOptions
impl Clone for BackupDumpOptions
Source§impl Debug for BackupDumpOptions
impl Debug for BackupDumpOptions
Source§impl Default for BackupDumpOptions
impl Default for BackupDumpOptions
impl Eq for BackupDumpOptions
Source§impl PartialEq for BackupDumpOptions
impl PartialEq for BackupDumpOptions
impl StructuralPartialEq for BackupDumpOptions
Auto Trait Implementations§
impl Freeze for BackupDumpOptions
impl RefUnwindSafe for BackupDumpOptions
impl Send for BackupDumpOptions
impl Sync for BackupDumpOptions
impl Unpin for BackupDumpOptions
impl UnsafeUnpin for BackupDumpOptions
impl UnwindSafe for BackupDumpOptions
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