pub struct CopyDataOptions {
pub data_format: Option<DataFormat>,
pub max_parallel: Option<NonZeroUsize>,
pub target_schema: Option<String>,
pub rename_schema_to: Option<String>,
pub schema_only: bool,
pub differential: bool,
}Fields§
§data_format: Option<DataFormat>Force this data format to be used
max_parallel: Option<NonZeroUsize>How many tables to copy in parallel at most
target_schema: Option<String>The schema to inspect
rename_schema_to: Option<String>If target_schema is specified it will be renamed to this
when applied to the destination.
schema_only: boolOnly the schema will be copied, but not any data
differential: boolOnly the structures missing in the destination will be copied. Data copy is only checked against “empty table” vs “non-empty table”. This only works with data sources that supports structural inspections, aka not sql-files.
Trait Implementations§
Source§impl Debug for CopyDataOptions
impl Debug for CopyDataOptions
Source§impl Default for CopyDataOptions
impl Default for CopyDataOptions
Source§fn default() -> CopyDataOptions
fn default() -> CopyDataOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CopyDataOptions
impl RefUnwindSafe for CopyDataOptions
impl Send for CopyDataOptions
impl Sync for CopyDataOptions
impl Unpin for CopyDataOptions
impl UnwindSafe for CopyDataOptions
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more