pub struct BulkInsertBuilder<'e, V: ValidationMode = Validated> { /* private fields */ }Expand description
Main builder for bulk insert operations.
Type parameter V tracks the validation mode at compile time.
Implementations§
Source§impl<'e, V: ValidationMode> BulkInsertBuilder<'e, V>
impl<'e, V: ValidationMode> BulkInsertBuilder<'e, V>
Sourcepub fn table<'a>(
&'a mut self,
qualified_name: &str,
) -> TableInsertBuilder<'a, 'e, V>
pub fn table<'a>( &'a mut self, qualified_name: &str, ) -> TableInsertBuilder<'a, 'e, V>
Begin inserting into a table.
The qualified name can be either “namespace::table” or just “table” (which uses the default namespace).
Sourcepub fn ringbuffer<'a>(
&'a mut self,
qualified_name: &str,
) -> RingBufferInsertBuilder<'a, 'e, V>
pub fn ringbuffer<'a>( &'a mut self, qualified_name: &str, ) -> RingBufferInsertBuilder<'a, 'e, V>
Begin inserting into a ring buffer.
The qualified name can be either “namespace::ringbuffer” or just “ringbuffer” (which uses the default namespace).
Sourcepub fn execute(self) -> Result<BulkInsertResult>
pub fn execute(self) -> Result<BulkInsertResult>
Execute all pending inserts in a single transaction.
Returns a summary of what was inserted. On error, the entire transaction is rolled back (no partial inserts).
Auto Trait Implementations§
impl<'e, V> Freeze for BulkInsertBuilder<'e, V>
impl<'e, V = Validated> !RefUnwindSafe for BulkInsertBuilder<'e, V>
impl<'e, V> Send for BulkInsertBuilder<'e, V>where
V: Send,
impl<'e, V> Sync for BulkInsertBuilder<'e, V>where
V: Sync,
impl<'e, V> Unpin for BulkInsertBuilder<'e, V>where
V: Unpin,
impl<'e, V> UnsafeUnpin for BulkInsertBuilder<'e, V>
impl<'e, V = Validated> !UnwindSafe for BulkInsertBuilder<'e, V>
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> 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