#[non_exhaustive]pub enum MigrateAction {
Up {
database_url: String,
dir: String,
},
Down {
database_url: String,
dir: String,
steps: u32,
},
Status {
database_url: String,
dir: String,
},
Create {
name: String,
dir: String,
},
Generate {
name: String,
dir: String,
},
Validate {
dir: String,
},
Preflight {
dir: String,
},
}Expand description
Migration subcommand
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Up
Apply pending migrations
Down
Roll back migrations
Fields
Status
Show migration status
Create
Create a new migration file
Generate
Generate a new migration from schema diff
Validate
Validate migration files for naming, idempotency, and drift
Preflight
Pre-deploy safety check on pending migrations
Trait Implementations§
Source§impl Clone for MigrateAction
impl Clone for MigrateAction
Source§fn clone(&self) -> MigrateAction
fn clone(&self) -> MigrateAction
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 MigrateAction
impl RefUnwindSafe for MigrateAction
impl Send for MigrateAction
impl Sync for MigrateAction
impl Unpin for MigrateAction
impl UnsafeUnpin for MigrateAction
impl UnwindSafe for MigrateAction
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