pub struct Migration {
pub version: u32,
pub statements: &'static [&'static str],
}Expand description
One physical migration: its statements run in one transaction, which
then records version.
Fields§
§version: u32The schema version this migration reaches.
statements: &'static [&'static str]Its statements, in order. Each is idempotent (IF NOT EXISTS).
Trait Implementations§
impl Copy for Migration
impl Eq for Migration
impl StructuralPartialEq for Migration
Auto Trait Implementations§
impl Freeze for Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin for Migration
impl UnsafeUnpin for Migration
impl UnwindSafe for Migration
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more