pub struct MigrateOptions {
pub backup: bool,
pub backup_options: Option<DbOptions>,
pub forward_compatible: Option<fn(&Connection) -> bool>,
pub optimize_after: bool,
}Fields§
§backup: boolTake a pre-migration backup when migrating an existing (version > 0) on-disk database.
backup_options: Option<DbOptions>Key source for the backup (SQLCipher); DbOptions::open_writer_migrated fills this in.
forward_compatible: Option<fn(&Connection) -> bool>For a database newer than this build: true means the subset this build reads/writes is
intact, so open it read-write without migrating.
optimize_after: boolRefresh planner statistics after migrating (PRAGMA optimize).
Trait Implementations§
Source§impl Clone for MigrateOptions
impl Clone for MigrateOptions
Auto Trait Implementations§
impl !RefUnwindSafe for MigrateOptions
impl !UnwindSafe for MigrateOptions
impl Freeze for MigrateOptions
impl Send for MigrateOptions
impl Sync for MigrateOptions
impl Unpin for MigrateOptions
impl UnsafeUnpin for MigrateOptions
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