Struct ethcore::migrations::ToV9
[−]
[src]
pub struct ToV9 { /* fields omitted */ }
Consolidation of extras/block/state databases into single one.
Methods
impl ToV9
[src]
fn new(column: Option<u32>, extract: Extract) -> Self
Creates new V9 migration and assigns all (key,value)
pairs from source
DB to given Column Family
Trait Implementations
impl Migration for ToV9
[src]
fn columns(&self) -> Option<u32>
Number of columns in database after the migration.
fn version(&self) -> u32
Version of the database after the migration.
fn migrate(&mut self,
source: Arc<Database>,
config: &Config,
dest: &mut Database,
col: Option<u32>)
-> Result<(), Error>
source: Arc<Database>,
config: &Config,
dest: &mut Database,
col: Option<u32>)
-> Result<(), Error>
Migrate a source to a destination.
fn pre_columns(&self) -> Option<u32>
Number of columns in the database before the migration.