pub struct Merger { /* private fields */ }Expand description
Merger for combining split SQL files
Implementations§
Source§impl Merger
impl Merger
pub fn new(input_dir: PathBuf, output: Option<PathBuf>) -> Self
pub fn with_dialect(self, dialect: SqlDialect) -> Self
pub fn with_tables(self, tables: HashSet<String>) -> Self
pub fn with_exclude(self, exclude: HashSet<String>) -> Self
pub fn with_transaction(self, add_transaction: bool) -> Self
pub fn with_header(self, add_header: bool) -> Self
Sourcepub fn merge(&self) -> Result<MergeStats>
pub fn merge(&self) -> Result<MergeStats>
Run the merge operation
Auto Trait Implementations§
impl Freeze for Merger
impl RefUnwindSafe for Merger
impl Send for Merger
impl Sync for Merger
impl Unpin for Merger
impl UnwindSafe for Merger
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
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