[][src]Struct vemigrate::Migrator

pub struct Migrator<'a, S> { /* fields omitted */ }

Methods

impl<'a, S> Migrator<'a, S> where
    S: Store
[src]

pub fn with_store<P>(path: P, store: S) -> Self where
    P: Into<Cow<'a, Path>>, 
[src]

pub fn migrate_up(&self) -> Result<Option<u64>>[src]

Migrates up, returns None if database is already up to date.

pub fn migrate_down(&self) -> Result<Option<u64>>[src]

Migrates down, returns None if database is already up to date.

pub fn migrate_up_n(&self, n: usize) -> Result<Option<u64>>[src]

Migrates up n times or less, returns None if database is already up to date.

pub fn migrate_down_n(&self, n: usize) -> Result<Option<u64>>[src]

Migrates down n times or less, returns None if database is already up to date.

pub fn execute_migrations(
    &self,
    migration_to_execute: Vec<(u64, Vec<String>)>,
    up: bool,
    n: Option<usize>
) -> Result<Option<u64>>
[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for Migrator<'a, S> where
    S: RefUnwindSafe

impl<'a, S> Send for Migrator<'a, S> where
    S: Send

impl<'a, S> Sync for Migrator<'a, S> where
    S: Sync

impl<'a, S> Unpin for Migrator<'a, S> where
    S: Unpin

impl<'a, S> UnwindSafe for Migrator<'a, S> where
    S: UnwindSafe

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> 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.