Struct sqlx_migrator::cli::MigrationCommand
source · pub struct MigrationCommand { /* private fields */ }
Available on crate feature
cli
only.Expand description
Migration command for performing rust based sqlx migrations
Implementations§
source§impl MigrationCommand
impl MigrationCommand
sourcepub async fn parse_and_run<DB, State>(
migrator: Box<dyn Migrate<DB, State>>,
connection: &mut <DB as Database>::Connection
) -> Result<(), Error>
pub async fn parse_and_run<DB, State>( migrator: Box<dyn Migrate<DB, State>>, connection: &mut <DB as Database>::Connection ) -> Result<(), Error>
Parse MigrationCommand
and run migration command line interface
§Errors
If migration command fails to complete and raise some issue
Trait Implementations§
source§impl Args for MigrationCommand
impl Args for MigrationCommand
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl CommandFactory for MigrationCommand
impl CommandFactory for MigrationCommand
source§impl Debug for MigrationCommand
impl Debug for MigrationCommand
source§impl FromArgMatches for MigrationCommand
impl FromArgMatches for MigrationCommand
source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches ) -> Result<Self, Error>
source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches ) -> Result<(), Error>
Assign values from
ArgMatches
to self
.source§impl Parser for MigrationCommand
impl Parser for MigrationCommand
source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Update from iterator, exit on error.
Auto Trait Implementations§
impl Freeze for MigrationCommand
impl RefUnwindSafe for MigrationCommand
impl Send for MigrationCommand
impl Sync for MigrationCommand
impl Unpin for MigrationCommand
impl UnwindSafe for MigrationCommand
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