pub struct MigrationOptions { /* private fields */ }Expand description
Options for copying a v1 or v2 store into a new v3 store.
The source must be offline for the entire migration. FeOxDB opens it read-only but does not lock it against another process.
Implementations§
Source§impl MigrationOptions
impl MigrationOptions
Sourcepub fn new(source: impl Into<PathBuf>, destination: impl Into<PathBuf>) -> Self
pub fn new(source: impl Into<PathBuf>, destination: impl Into<PathBuf>) -> Self
Create migration options for an offline source and a new destination.
The destination must not exist and is never overwritten.
Sourcepub fn allow_ambiguous_legacy_recovery(self, allow: bool) -> Self
pub fn allow_ambiguous_legacy_recovery(self, allow: bool) -> Self
Permit the historical skip-one interpretation of legacy deletion markers.
A v1/v2 marker does not encode the retired extent length. Enabling this can expose continuation bytes from a deleted multi-sector record as a record.
Trait Implementations§
Source§impl Clone for MigrationOptions
impl Clone for MigrationOptions
Source§fn clone(&self) -> MigrationOptions
fn clone(&self) -> MigrationOptions
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 MigrationOptions
impl RefUnwindSafe for MigrationOptions
impl Send for MigrationOptions
impl Sync for MigrationOptions
impl Unpin for MigrationOptions
impl UnsafeUnpin for MigrationOptions
impl UnwindSafe for MigrationOptions
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