pub struct RepeatableMigration {
pub name: String,
pub script_path: String,
pub sql: String,
pub transactional: bool,
}Expand description
A Flyway-style repeatable migration (R__{description}.sql). It has no version: it is
identified by name and re-applied whenever its checksum changes, after all versioned
migrations. Tracked in its own table, separately from Migration (see
REPEATABLE_MIGRATIONS_PLAN.md).
Fields§
§name: StringThe part of the filename between R__ and .sql, exactly as written. This is the
unique key the migration is tracked under.
script_path: String§sql: String§transactional: boolSame meaning as Migration::transactional.
Implementations§
Source§impl RepeatableMigration
impl RepeatableMigration
Sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Human-readable form of name (underscores shown as spaces), mirroring how
versioned migration descriptions are derived.
Trait Implementations§
Source§impl Clone for RepeatableMigration
impl Clone for RepeatableMigration
Auto Trait Implementations§
impl Freeze for RepeatableMigration
impl RefUnwindSafe for RepeatableMigration
impl Send for RepeatableMigration
impl Sync for RepeatableMigration
impl Unpin for RepeatableMigration
impl UnsafeUnpin for RepeatableMigration
impl UnwindSafe for RepeatableMigration
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
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