Trait migration_rocksdb::SimpleMigration [−][src]
A simple migration over key-value pairs of a single column.
Required methods
fn columns(&self) -> u32
[src]
Number of columns in database after the migration.
fn version(&self) -> u32
[src]
Version of database after the migration.
fn migrated_column_index(&self) -> u32
[src]
Index of column which should be migrated.
fn simple_migrate(
&mut self,
key: Vec<u8>,
value: Vec<u8>
) -> Option<(Vec<u8>, Vec<u8>)>
[src]
&mut self,
key: Vec<u8>,
value: Vec<u8>
) -> Option<(Vec<u8>, Vec<u8>)>
Should migrate existing object to new database.
Returns None
if the object does not exist in new version of database.