pub struct MigrationConfig {
pub migrations_dir: PathBuf,
pub state_dir: PathBuf,
pub auto_timestamp: bool,
}Expand description
Configuration for migration system.
Fields§
§migrations_dir: PathBufDirectory containing migration files (default: “migrations/”)
state_dir: PathBufDirectory for state files (default: “.kimberlite/migrations/”)
auto_timestamp: boolAuto-generate timestamps in migration filenames
Implementations§
Source§impl MigrationConfig
impl MigrationConfig
Sourcepub fn with_migrations_dir(dir: impl Into<PathBuf>) -> Self
pub fn with_migrations_dir(dir: impl Into<PathBuf>) -> Self
Creates config with custom migrations directory.
Sourcepub fn lock_file_path(&self) -> PathBuf
pub fn lock_file_path(&self) -> PathBuf
Returns path to lock file.
Trait Implementations§
Source§impl Clone for MigrationConfig
impl Clone for MigrationConfig
Source§fn clone(&self) -> MigrationConfig
fn clone(&self) -> MigrationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MigrationConfig
impl Debug for MigrationConfig
Auto Trait Implementations§
impl Freeze for MigrationConfig
impl RefUnwindSafe for MigrationConfig
impl Send for MigrationConfig
impl Sync for MigrationConfig
impl Unpin for MigrationConfig
impl UnsafeUnpin for MigrationConfig
impl UnwindSafe for MigrationConfig
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