pub struct HooksConfig {
pub before_migrate: Vec<PathBuf>,
pub after_migrate: Vec<PathBuf>,
pub before_each_migrate: Vec<PathBuf>,
pub after_each_migrate: Vec<PathBuf>,
}Expand description
Hook configuration for running SQL before/after migrations.
Fields§
§before_migrate: Vec<PathBuf>SQL scripts to run once before the entire migration run.
after_migrate: Vec<PathBuf>SQL scripts to run once after the entire migration run.
before_each_migrate: Vec<PathBuf>SQL scripts to run before each individual migration.
after_each_migrate: Vec<PathBuf>SQL scripts to run after each individual migration.
Trait Implementations§
Source§impl Clone for HooksConfig
impl Clone for HooksConfig
Source§fn clone(&self) -> HooksConfig
fn clone(&self) -> HooksConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 HooksConfig
impl Debug for HooksConfig
Source§impl Default for HooksConfig
impl Default for HooksConfig
Source§fn default() -> HooksConfig
fn default() -> HooksConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HooksConfig
impl RefUnwindSafe for HooksConfig
impl Send for HooksConfig
impl Sync for HooksConfig
impl Unpin for HooksConfig
impl UnsafeUnpin for HooksConfig
impl UnwindSafe for HooksConfig
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