pub struct MonarchConfiguration {
pub name: String,
pub enable_foreign_keys: bool,
pub migration_directory: Utf8PathBuf,
}Expand description
Configuration for MonarchDB that loads migrations from a directory at runtime.
This configuration is used when migrations are stored as separate files in a directory and need to be loaded dynamically when the application starts.
Fields§
§name: StringThe name of the database schema, used for tracking migration versions.
enable_foreign_keys: boolWhether to enable foreign key constraints in SQLite.
migration_directory: Utf8PathBufPath to the directory containing migration files.
Trait Implementations§
Source§impl Clone for MonarchConfiguration
impl Clone for MonarchConfiguration
Source§fn clone(&self) -> MonarchConfiguration
fn clone(&self) -> MonarchConfiguration
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 moreAuto Trait Implementations§
impl Freeze for MonarchConfiguration
impl RefUnwindSafe for MonarchConfiguration
impl Send for MonarchConfiguration
impl Sync for MonarchConfiguration
impl Unpin for MonarchConfiguration
impl UnsafeUnpin for MonarchConfiguration
impl UnwindSafe for MonarchConfiguration
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