pub struct MigrationConfigBuilder { /* private fields */ }
Expand description
Builder for migration configuration
Implementations§
Source§impl MigrationConfigBuilder
impl MigrationConfigBuilder
Sourcepub fn table_name(self, name: impl Into<String>) -> Self
pub fn table_name(self, name: impl Into<String>) -> Self
Set the table name
Sourcepub fn with_transactions(self) -> Self
pub fn with_transactions(self) -> Self
Enable transactions
Sourcepub fn without_transactions(self) -> Self
pub fn without_transactions(self) -> Self
Disable transactions
Sourcepub fn lock_timeout(self, timeout: Duration) -> Self
pub fn lock_timeout(self, timeout: Duration) -> Self
Set lock timeout
Sourcepub fn verify_checksums(self) -> Self
pub fn verify_checksums(self) -> Self
Enable checksum verification
Sourcepub fn skip_checksum_verification(self) -> Self
pub fn skip_checksum_verification(self) -> Self
Disable checksum verification
Sourcepub fn allow_out_of_order(self) -> Self
pub fn allow_out_of_order(self) -> Self
Allow out-of-order migrations
Sourcepub fn build(self) -> MigrationConfig
pub fn build(self) -> MigrationConfig
Build the configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MigrationConfigBuilder
impl RefUnwindSafe for MigrationConfigBuilder
impl Send for MigrationConfigBuilder
impl Sync for MigrationConfigBuilder
impl Unpin for MigrationConfigBuilder
impl UnwindSafe for MigrationConfigBuilder
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