Trait migration_rocksdb::SimpleMigration
source · [−]pub trait SimpleMigration: 'static {
fn columns(&self) -> Option<u32>;
fn version(&self) -> u32;
fn migrated_column_index(&self) -> Option<u32>;
fn simple_migrate(
&mut self,
key: Vec<u8>,
value: Vec<u8>
) -> Option<(Vec<u8>, Vec<u8>)>;
}
Expand description
A simple migration over key-value pairs of a single column.
Required methods
fn migrated_column_index(&self) -> Option<u32>
fn migrated_column_index(&self) -> Option<u32>
Index of column which should be migrated.