pub struct DumpOptions {
pub format: DumpFormat,
pub batch_size: usize,
pub schema: Option<String>,
pub deterministic: bool,
}Expand description
Options for a dump operation.
Fields§
§format: DumpFormat§batch_size: usize§schema: Option<String>§deterministic: boolWhen true and format == DumpFormat::Sql, produce a byte-stable
stream of one INSERT INTO ... VALUES (...); per row, with rows
ordered server-side by primary key (or by every column,
lexicographically, when the table has no PK — a warning is
emitted on stderr in that case). JSON cell values are
re-serialised with sorted object keys.
Has no effect on DumpFormat::Csv / DumpFormat::Json.
Trait Implementations§
Source§impl Clone for DumpOptions
impl Clone for DumpOptions
Source§fn clone(&self) -> DumpOptions
fn clone(&self) -> DumpOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DumpOptions
impl Debug for DumpOptions
Auto Trait Implementations§
impl Freeze for DumpOptions
impl RefUnwindSafe for DumpOptions
impl Send for DumpOptions
impl Sync for DumpOptions
impl Unpin for DumpOptions
impl UnsafeUnpin for DumpOptions
impl UnwindSafe for DumpOptions
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