[−][src]Struct vemigrate::Migrator
Methods
impl<'a, S> Migrator<'a, S> where
S: Store,
[src]
S: Store,
pub fn with_store<P>(path: P, store: S) -> Self where
P: Into<Cow<'a, Path>>,
[src]
P: Into<Cow<'a, Path>>,
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]
&self,
migration_to_execute: Vec<(u64, Vec<String>)>,
up: bool,
n: Option<usize>
) -> Result<Option<u64>>
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for Migrator<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S> Send for Migrator<'a, S> where
S: Send,
S: Send,
impl<'a, S> Sync for Migrator<'a, S> where
S: Sync,
S: Sync,
impl<'a, S> Unpin for Migrator<'a, S> where
S: Unpin,
S: Unpin,
impl<'a, S> UnwindSafe for Migrator<'a, S> where
S: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,