pub struct PostgresSchemaEditor;Implementations§
Source§impl PostgresSchemaEditor
impl PostgresSchemaEditor
Sourcepub fn plan_migration(
operations: &[MigrationOperation],
before: &ProjectState,
) -> Result<PostgresOperationPlan, MigrationError>
pub fn plan_migration( operations: &[MigrationOperation], before: &ProjectState, ) -> Result<PostgresOperationPlan, MigrationError>
Plans a complete historical migration, resolving deferred foreign keys in the same order as the executor. Unlike planning isolated operations, this handles cyclic table creation and changes to pending references.
pub fn plan( operation: &MigrationOperation, before: &ProjectState, ) -> Result<PostgresOperationPlan, MigrationError>
Trait Implementations§
Source§impl Clone for PostgresSchemaEditor
impl Clone for PostgresSchemaEditor
impl Copy for PostgresSchemaEditor
Source§impl Debug for PostgresSchemaEditor
impl Debug for PostgresSchemaEditor
Auto Trait Implementations§
impl Forget for PostgresSchemaEditor
impl Freeze for PostgresSchemaEditor
impl Move for PostgresSchemaEditor
impl RefUnwindSafe for PostgresSchemaEditor
impl Send for PostgresSchemaEditor
impl Sync for PostgresSchemaEditor
impl Unpin for PostgresSchemaEditor
impl UnsafeUnpin for PostgresSchemaEditor
impl UnwindSafe for PostgresSchemaEditor
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