pub trait Migration {
    fn migrate(
        &self,
        _db: RocksDB,
        _pb: Arc<dyn Fn(u64) -> ProgressBar + Send + Sync>
    ) -> Result<RocksDB, Error>; fn version(&self) -> &str; fn expensive(&self) -> bool { ... } }
Expand description

TODO(doc): @quake

Required Methods

TODO(doc): @quake

returns migration version, use date +'%Y%m%d%H%M%S' timestamp format

Provided Methods

Will cost a lot of time to perform this migration operation.

Override this function for Migrations which could be executed very fast.

Implementors