Struct migration_rocksdb::ChangeColumns
source · [−]pub struct ChangeColumns {
pub pre_columns: Option<u32>,
pub post_columns: Option<u32>,
pub version: u32,
}
Expand description
An even simpler migration which just changes the number of columns.
Fields
pre_columns: Option<u32>
The amount of columns before this migration.
post_columns: Option<u32>
The amount of columns after this migration.
version: u32
The version after this migration.
Trait Implementations
sourceimpl Migration for ChangeColumns
impl Migration for ChangeColumns
sourcefn pre_columns(&self) -> Option<u32>
fn pre_columns(&self) -> Option<u32>
Number of columns in the database before the migration.
sourcefn alters_existing(&self) -> bool
fn alters_existing(&self) -> bool
Whether this migration alters any existing columns.
if not, then column families will simply be added and migrate
will never be called. Read more
Auto Trait Implementations
impl RefUnwindSafe for ChangeColumns
impl Send for ChangeColumns
impl Sync for ChangeColumns
impl Unpin for ChangeColumns
impl UnwindSafe for ChangeColumns
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more