pub struct DumpLoader<'a> { /* private fields */ }Expand description
Loads SQL dumps into a DuckDB database
Implementations§
Source§impl<'a> DumpLoader<'a>
impl<'a> DumpLoader<'a>
Sourcepub fn new(conn: &'a Connection, config: &'a QueryConfig) -> Self
pub fn new(conn: &'a Connection, config: &'a QueryConfig) -> Self
Create a new dump loader
Sourcepub fn load(&self, dump_path: &Path) -> Result<ImportStats>
pub fn load(&self, dump_path: &Path) -> Result<ImportStats>
Load a SQL dump file into DuckDB
Auto Trait Implementations§
impl<'a> Freeze for DumpLoader<'a>
impl<'a> !RefUnwindSafe for DumpLoader<'a>
impl<'a> !Send for DumpLoader<'a>
impl<'a> !Sync for DumpLoader<'a>
impl<'a> Unpin for DumpLoader<'a>
impl<'a> !UnwindSafe for DumpLoader<'a>
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