pub struct SqliteSchemaEditor;Expand description
Renders declarative migration operations for SQLite. Operations that alter a table’s shape use SQLite’s reliable create-copy-drop-rename workflow.
Implementations§
Source§impl SqliteSchemaEditor
impl SqliteSchemaEditor
Sourcepub fn rebuild_table_name(operation: &MigrationOperation) -> Option<&str>
pub fn rebuild_table_name(operation: &MigrationOperation) -> Option<&str>
Returns the affected table for operations implemented through a table rebuild. Callers can inspect database-owned triggers before execution.
pub fn plan( operation: &MigrationOperation, before: &ProjectState, ) -> Result<SqliteOperationPlan, MigrationError>
Trait Implementations§
Source§impl Clone for SqliteSchemaEditor
impl Clone for SqliteSchemaEditor
impl Copy for SqliteSchemaEditor
Source§impl Debug for SqliteSchemaEditor
impl Debug for SqliteSchemaEditor
Auto Trait Implementations§
impl Forget for SqliteSchemaEditor
impl Freeze for SqliteSchemaEditor
impl Move for SqliteSchemaEditor
impl RefUnwindSafe for SqliteSchemaEditor
impl Send for SqliteSchemaEditor
impl Sync for SqliteSchemaEditor
impl Unpin for SqliteSchemaEditor
impl UnsafeUnpin for SqliteSchemaEditor
impl UnwindSafe for SqliteSchemaEditor
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