pub struct Migration {
pub version: i64,
pub description: String,
pub sql: String,
}Expand description
One migration: a version, a description and the SQL text. The text is hashed; changing a migration that has been applied is an error, never a silent re-run.
Fields§
§version: i64Positive, strictly increasing across a program’s migrations (sqlx uses the timestamp or sequence in the file name).
description: StringA short description, stored in the ledger.
sql: StringThe statements, run in one transaction.
Implementations§
Trait Implementations§
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