pub struct BaselineMigrationManager { /* private fields */ }Expand description
Manager for baseline migration operations
Implementations§
Source§impl BaselineMigrationManager
impl BaselineMigrationManager
Sourcepub async fn create_baseline(
&self,
name: Option<String>,
) -> Result<BaselineMigration>
pub async fn create_baseline( &self, name: Option<String>, ) -> Result<BaselineMigration>
Create a baseline migration from the current database state
Sourcepub async fn save_baseline(
&self,
baseline: &BaselineMigration,
output_dir: &str,
) -> Result<()>
pub async fn save_baseline( &self, baseline: &BaselineMigration, output_dir: &str, ) -> Result<()>
Save baseline migration to file
Sourcepub async fn save_baseline_with_strategy(
&self,
baseline: &BaselineMigration,
output_dir: &str,
strategy: &dyn MigrationStrategy,
) -> Result<()>
pub async fn save_baseline_with_strategy( &self, baseline: &BaselineMigration, output_dir: &str, strategy: &dyn MigrationStrategy, ) -> Result<()>
Save baseline using a specific migration strategy (generates multiple files based on strategy)
Sourcepub async fn apply_baseline(&self, baseline: &BaselineMigration) -> Result<()>
pub async fn apply_baseline(&self, baseline: &BaselineMigration) -> Result<()>
Apply baseline to migration tracking table
Sourcepub async fn has_baseline(&self) -> Result<bool>
pub async fn has_baseline(&self) -> Result<bool>
Verify if a baseline already exists
Auto Trait Implementations§
impl !RefUnwindSafe for BaselineMigrationManager
impl !UnwindSafe for BaselineMigrationManager
impl Freeze for BaselineMigrationManager
impl Send for BaselineMigrationManager
impl Sync for BaselineMigrationManager
impl Unpin for BaselineMigrationManager
impl UnsafeUnpin for BaselineMigrationManager
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<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