[−][src]Struct refinery::Runner
Struct that represents the entrypoint to run the migrations, an instance of this struct is returned by the embed_migrations and the mod_migrations runner function, Runner should not need to be instantiated manually
Methods
impl Runner
[src]
pub fn new(migrations: &[Migration]) -> Runner
[src]
pub fn set_grouped(self, grouped: bool) -> Runner
[src]
Set true if all migrations should be grouped and run in a single transaction by default this is set to false
pub fn set_abort_divergent(self, abort_divergent: bool) -> Runner
[src]
Set true if migration process should abort if divergent migrations are found i.e. applied migrations with the same version but different name or checksum from the ones on the filesystem by default this is set to true
pub fn set_abort_missing(self, abort_divergent: bool) -> Runner
[src]
Set true if migration process should abort if missing migrations are found i.e. applied migrations that are not found on the filesystem, or migrations found on filesystem with a version inferior to the last one applied but not applied
pub fn run<'a, C>(&self, conn: &'a mut C) -> Result<(), Error> where
C: MigrateGrouped<'a> + Migrate,
[src]
C: MigrateGrouped<'a> + Migrate,
Runs the Migrations in the supplied database connection
Auto Trait Implementations
impl Send for Runner
impl Sync for Runner
impl Unpin for Runner
impl UnwindSafe for Runner
impl RefUnwindSafe for Runner
Blanket Implementations
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 = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,