Trait migration_rocksdb::Migration [−][src]
A generalized migration from the given db to a destination db.
Required methods
fn columns(&self) -> u32
[src]
Number of columns in database after the migration.
fn version(&self) -> u32
[src]
Version of the database after the migration.
fn migrate(
&mut self,
source: Arc<Database>,
config: &Config,
destination: &mut Database,
col: u32
) -> Result<()>
[src]
&mut self,
source: Arc<Database>,
config: &Config,
destination: &mut Database,
col: u32
) -> Result<()>
Migrate a source to a destination.
Provided methods
fn pre_columns(&self) -> u32
[src]
Number of columns in the database before the migration.
fn alters_existing(&self) -> bool
[src]
Whether this migration alters any existing columns.
if not, then column families will simply be added and migrate
will never be called.
Implementors
impl Migration for ChangeColumns
[src]
fn pre_columns(&self) -> u32
[src]
fn columns(&self) -> u32
[src]
fn alters_existing(&self) -> bool
[src]
fn version(&self) -> u32
[src]
fn migrate(
&mut self,
_: Arc<Database>,
_: &Config,
_: &mut Database,
_: u32
) -> Result<()>
[src]
&mut self,
_: Arc<Database>,
_: &Config,
_: &mut Database,
_: u32
) -> Result<()>