pub struct CsvWriter<'a, P>{ /* private fields */ }Expand description
Builder-style helper for writing CSV data from a table.
Implementations§
Source§impl<'a, P> CsvWriter<'a, P>
impl<'a, P> CsvWriter<'a, P>
pub fn new(table: &'a Table<P>) -> Self
pub fn with_options(table: &'a Table<P>, options: CsvWriteOptions) -> Self
pub fn options(&self) -> &CsvWriteOptions
pub fn options_mut(&mut self) -> &mut CsvWriteOptions
pub fn into_options(self) -> CsvWriteOptions
pub fn write_columns_to_path<C>( &self, csv_path: C, columns: &[CsvExportColumn], ) -> LlkvResult<()>
pub fn write_columns_to_path_with_filter<C>( &self, csv_path: C, columns: &[CsvExportColumn], filter_expr: &Expr<'_, FieldId>, ) -> LlkvResult<()>
pub fn write_columns_to_writer<W>(
&self,
writer: W,
columns: &[CsvExportColumn],
filter_expr: &Expr<'_, FieldId>,
) -> LlkvResult<()>where
W: Write,
pub fn write_projections_to_path<C, I, SP>( &self, csv_path: C, projections: I, filter_expr: &Expr<'_, FieldId>, ) -> LlkvResult<()>
pub fn write_projections_to_writer<W, I, SP>( &self, writer: W, projections: I, filter_expr: &Expr<'_, FieldId>, ) -> LlkvResult<()>
Trait Implementations§
Auto Trait Implementations§
impl<'a, P> Freeze for CsvWriter<'a, P>
impl<'a, P> RefUnwindSafe for CsvWriter<'a, P>where
P: RefUnwindSafe,
impl<'a, P> Send for CsvWriter<'a, P>
impl<'a, P> Sync for CsvWriter<'a, P>
impl<'a, P> Unpin for CsvWriter<'a, P>
impl<'a, P> UnwindSafe for CsvWriter<'a, P>where
P: RefUnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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