Struct rusqlite_migration::M[][src]

pub struct M<'u> { /* fields omitted */ }

One migration

Implementations

impl<'u> M<'u>[src]

pub fn up(sql: &'u str) -> Self[src]

Create a schema update.

Please note

  • PRAGMA statements are discouraged here. They are often better applied outside of migrations, because:
    • Some PRAGMA need to be executed for each connection (like foreign_keys).
    • Some PRAGMA are no-op when executed inside transactions (that will be the case for the SQL written in up) (like journal_mode).
    • Multiple SQL commands contaning PRAGMA are known not to work with the extra_check feature of rusqlite.
  • SQL commands should end with a “;”.

Trait Implementations

impl<'u> Clone for M<'u>[src]

impl<'u> Debug for M<'u>[src]

impl<'u> PartialEq<M<'u>> for M<'u>[src]

impl<'u> StructuralPartialEq for M<'u>[src]

Auto Trait Implementations

impl<'u> RefUnwindSafe for M<'u>

impl<'u> Send for M<'u>

impl<'u> Sync for M<'u>

impl<'u> Unpin for M<'u>

impl<'u> UnwindSafe for M<'u>

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.