pub enum Migration {
Sql(String),
}Expand description
Database migration generate from a super::SchemaDiff by a driver.
Variants§
Implementations§
Source§impl Migration
impl Migration
Sourcepub fn new_sql_with_breakpoints<S: AsRef<str>>(statements: &[S]) -> Self
pub fn new_sql_with_breakpoints<S: AsRef<str>>(statements: &[S]) -> Self
Create a new SQL migration from multiple SQL statements. Statements are joined with breakpoint markers.
Sourcepub fn statements(&self) -> Vec<&str>
pub fn statements(&self) -> Vec<&str>
Get individual SQL statements by splitting on breakpoint markers.
Auto Trait Implementations§
impl Freeze for Migration
impl RefUnwindSafe for Migration
impl Send for Migration
impl Sync for Migration
impl Unpin 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