pub struct Migration {
pub version: i64,
pub description: &'static str,
pub sql: &'static str,
}Expand description
One forward migration. sql may contain any number of statements
separated by ;. version is monotonically increasing and is
stamped into PRAGMA user_version after the migration commits.
Fields§
§version: i64Monotonic version (1, 2, 3…). Stored in schema_migrations.version.
description: &'static strHuman-readable description. Stored in schema_migrations.description.
sql: &'static strSQL statements (semicolon-separated) to apply. May include
CREATE TABLE, CREATE INDEX, etc.
Trait Implementations§
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