pub struct MigrateOpts {
pub from: Backend,
pub to: Backend,
pub source_path: PathBuf,
pub target_path: PathBuf,
pub batch_size: usize,
pub force: bool,
pub dry_run: bool,
}Expand description
Migration options, typically parsed from CLI arguments.
Fields§
§from: BackendSource backend format
to: BackendTarget backend format
source_path: PathBufPath to source database (file for redb, file for Persy)
target_path: PathBufPath to target database (will be created)
batch_size: usizeRecords per write batch (default: 1000)
force: boolOverwrite target if it already exists
dry_run: boolPreview the migration without writing
Trait Implementations§
Source§impl Clone for MigrateOpts
impl Clone for MigrateOpts
Source§fn clone(&self) -> MigrateOpts
fn clone(&self) -> MigrateOpts
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 moreAuto Trait Implementations§
impl Freeze for MigrateOpts
impl RefUnwindSafe for MigrateOpts
impl Send for MigrateOpts
impl Sync for MigrateOpts
impl Unpin for MigrateOpts
impl UnsafeUnpin for MigrateOpts
impl UnwindSafe for MigrateOpts
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