pub struct ImportCommand {
pub source: PathBuf,
pub output: Option<PathBuf>,
pub schema: PathBuf,
pub rules: Option<PathBuf>,
pub tables: Option<Vec<String>>,
pub compress: bool,
pub force: bool,
pub continue_on_error: bool,
}Expand description
Configuration for the import operation.
Fields§
§source: PathBufSource directory containing export files.
output: Option<PathBuf>Output SQLite database path (required for file-based import, None for in-memory).
schema: PathBufSchema file path (DescribeTable JSON format).
rules: Option<PathBuf>Optional anonymisation rules TOML file.
tables: Option<Vec<String>>Optional table name filter (comma-separated).
compress: boolOptional zstd compression of output (only valid with file output).
force: boolOverwrite existing output file without prompting.
continue_on_error: boolContinue importing when a batch fails (default: fail-fast). When true, batch errors are recorded as warnings and import continues. When false (default), the first batch error aborts the import.
Auto Trait Implementations§
impl Freeze for ImportCommand
impl RefUnwindSafe for ImportCommand
impl Send for ImportCommand
impl Sync for ImportCommand
impl Unpin for ImportCommand
impl UnsafeUnpin for ImportCommand
impl UnwindSafe for ImportCommand
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