Struct migration_rocksdb::Manager[][src]

pub struct Manager { /* fields omitted */ }

Manages database migration.

Implementations

impl Manager[src]

pub fn new(config: Config) -> Self[src]

Creates new migration manager with given configuration.

pub fn add_migration<T: 'static>(&mut self, migration: T) -> Result<()> where
    T: Migration
[src]

Adds new migration rules.

pub fn execute(&mut self, old_path: &Path, version: u32) -> Result<PathBuf>[src]

Performs migration in order, starting with a source path, migrating between two temporary databases, and producing a path where the final migration lives.

pub fn is_needed(&self, version: u32) -> bool[src]

Returns true if migration is needed.

Auto Trait Implementations

impl !RefUnwindSafe for Manager

impl !Send for Manager

impl !Sync for Manager

impl Unpin for Manager

impl !UnwindSafe for Manager

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,