pub struct SqlMigration {
pub id: &'static str,
pub name: &'static str,
pub sql: &'static str,
}Expand description
One migration step, embedded with include_str! from
crates/<module>/migrations/<dialect>/NNNN_name.sql (issue #8).
Fields§
§id: &'static strSortable id: 0001, 0002, … — zero-padded so lexical order is
apply order.
name: &'static strShort slug from the file name (0001_init.sql -> init), used in
the wrangler-facing collected file names.
sql: &'static strTrait Implementations§
Source§impl Clone for SqlMigration
impl Clone for SqlMigration
Source§fn clone(&self) -> SqlMigration
fn clone(&self) -> SqlMigration
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SqlMigration
impl RefUnwindSafe for SqlMigration
impl Send for SqlMigration
impl Sync for SqlMigration
impl Unpin for SqlMigration
impl UnsafeUnpin for SqlMigration
impl UnwindSafe for SqlMigration
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