pub struct BulkWriter<'client, S>{ /* private fields */ }Expand description
SQL Server bulk writer for Arrow record batches.
Implementations§
Source§impl<'client, S> BulkWriter<'client, S>
impl<'client, S> BulkWriter<'client, S>
Sourcepub async fn new(
client: &'client mut Client<S>,
table: TableName,
mappings: Vec<SchemaMapping>,
options: WriteOptions,
) -> Result<Self>
pub async fn new( client: &'client mut Client<S>, table: TableName, mappings: Vec<SchemaMapping>, options: WriteOptions, ) -> Result<Self>
Starts a bulk writer for a planned SQL Server table target.
Sourcepub async fn write_batch(&mut self, batch: &RecordBatch) -> Result<WriteStats>
pub async fn write_batch(&mut self, batch: &RecordBatch) -> Result<WriteStats>
Writes one Arrow record batch.
Sourcepub async fn finish(self) -> Result<WriteStats>
pub async fn finish(self) -> Result<WriteStats>
Finalizes the bulk writer and returns cumulative write statistics.
Trait Implementations§
Auto Trait Implementations§
impl<'client, S> Freeze for BulkWriter<'client, S>
impl<'client, S> RefUnwindSafe for BulkWriter<'client, S>where
S: RefUnwindSafe,
impl<'client, S> Send for BulkWriter<'client, S>
impl<'client, S> Sync for BulkWriter<'client, S>where
S: Sync,
impl<'client, S> Unpin for BulkWriter<'client, S>
impl<'client, S> UnsafeUnpin for BulkWriter<'client, S>
impl<'client, S> !UnwindSafe for BulkWriter<'client, S>
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