pub struct Executor<W: Write> { /* private fields */ }
Expand description
Main struct that parses the CSV and put the data into a SQLite
Implementations§
Source§impl<W> Executor<W>where
W: Write,
impl<W> Executor<W>where
W: Write,
pub fn new<R>(
readers: Vec<R>,
output: W,
delimiter: u8,
batch_insert_number: usize,
) -> Result<Executor<W>>where
R: BufRead,
Sourcepub fn write_query_results(&mut self, query: &str) -> Result<()>
pub fn write_query_results(&mut self, query: &str) -> Result<()>
Run the query and write its result as CSV into the specified output stream
pub fn dump_database<P>(&self, output: P) -> Result<()>
Auto Trait Implementations§
impl<W> !Freeze for Executor<W>
impl<W> !RefUnwindSafe for Executor<W>
impl<W> Send for Executor<W>where
W: Send,
impl<W> !Sync for Executor<W>
impl<W> Unpin for Executor<W>where
W: Unpin,
impl<W> UnwindSafe for Executor<W>where
W: UnwindSafe,
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