Struct rusqlite_migration::Migrations [−][src]
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]
fn clone(&self) -> Migrations<'m>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'m> Debug for Migrations<'m>
[src]
impl<'m> PartialEq<Migrations<'m>> for Migrations<'m>
[src]
fn eq(&self, other: &Migrations<'m>) -> bool
[src]
fn ne(&self, other: &Migrations<'m>) -> bool
[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]
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,
pub 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub 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>,