pub struct CommandSession { /* private fields */ }Implementations§
Source§impl CommandSession
impl CommandSession
Sourcepub fn bulk_insert(&self) -> BulkInsertBuilder<'_, Validated>
pub fn bulk_insert(&self) -> BulkInsertBuilder<'_, Validated>
Start a bulk insert operation with full validation.
This provides a fluent API for fast bulk inserts that bypasses RQL parsing. All inserts within a single builder execute in one transaction. Uses this session’s identity for the operation.
§Example
ⓘ
use reifydb_type::params;
session.bulk_insert()
.table("users")
.row(params!{ id: 1, name: "Alice" })
.row(params!{ id: 2, name: "Bob" })
.done()
.execute()?;Sourcepub fn bulk_insert_trusted(&self) -> BulkInsertBuilder<'_, Trusted>
pub fn bulk_insert_trusted(&self) -> BulkInsertBuilder<'_, Trusted>
Start a bulk insert operation with validation disabled (trusted mode).
Use this for pre-validated internal data where constraint validation can be skipped for maximum performance. Uses this session’s identity.
Auto Trait Implementations§
impl Freeze for CommandSession
impl !RefUnwindSafe for CommandSession
impl Send for CommandSession
impl Sync for CommandSession
impl Unpin for CommandSession
impl UnsafeUnpin for CommandSession
impl !UnwindSafe for CommandSession
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