Struct rusqlite_migration::Migrations[][src]

pub struct Migrations<'m> { /* fields omitted */ }

Set of migrations

Implementations

impl<'m> Migrations<'m>[src]

pub fn new(ms: Vec<M<'m>>) -> Self[src]

Create a set of migrations.

pub fn new_iter<I: IntoIterator<Item = M<'m>>>(ms: I) -> Self[src]

Performs allocations transparently.

pub fn current_version(&self, conn: &Connection) -> Result<SchemaVersion>[src]

Get current schema version

pub fn latest(&self, conn: &mut Connection) -> Result<()>[src]

Migrate the database to latest schema version. The migrations are applied atomically.

pub fn validate(&self) -> Result<()>[src]

Run migrations from first to last, one by one. Convenience method for testing.

Trait Implementations

impl<'m> Clone for Migrations<'m>[src]

impl<'m> Debug for Migrations<'m>[src]

impl<'m> PartialEq<Migrations<'m>> for Migrations<'m>[src]

impl<'m> StructuralPartialEq for Migrations<'m>[src]

Auto Trait Implementations

impl<'m> RefUnwindSafe for Migrations<'m>

impl<'m> Send for Migrations<'m>

impl<'m> Sync for Migrations<'m>

impl<'m> Unpin for Migrations<'m>

impl<'m> UnwindSafe for Migrations<'m>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.