pub struct MigrateOpts { /* private fields */ }Expand description
Controls a migration operation.
Implementations§
Source§impl MigrateOpts
impl MigrateOpts
Sourcepub const fn target_version(&self) -> Option<i64>
pub const fn target_version(&self) -> Option<i64>
Returns the requested target version.
Sourcepub const fn with_dry_run(self, dry_run: bool) -> Self
pub const fn with_dry_run(self, dry_run: bool) -> Self
Reports selected SQL without applying it.
Sourcepub const fn with_max_steps(self, maximum: usize) -> Self
pub const fn with_max_steps(self, maximum: usize) -> Self
Limits the number of migration steps.
Sourcepub const fn with_target_version(self, version: i64) -> Self
pub const fn with_target_version(self, version: i64) -> Self
Migrates toward a target schema version. -1 removes River. An up
migration whose target is already applied does nothing, even if later
versions are pending.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MigrateOpts
impl RefUnwindSafe for MigrateOpts
impl Send for MigrateOpts
impl Sync for MigrateOpts
impl Unpin for MigrateOpts
impl UnsafeUnpin for MigrateOpts
impl UnwindSafe for MigrateOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more