pub struct Insert {
pub begin_batch: Option<BeginBatch>,
pub table_name: FQName,
pub columns: Vec<Identifier>,
pub values: InsertValues,
pub using_ttl: Option<TtlTimestamp>,
pub if_not_exists: bool,
}Expand description
the data for insert statements.
Fields§
§begin_batch: Option<BeginBatch>if set the statement starts with BEGIN BATCH
table_name: FQNamethe table name
columns: Vec<Identifier>an the list of of column names to insert into.
values: InsertValuesthe VALUES to insert
using_ttl: Option<TtlTimestamp>if set the timestamp for USING TTL
if_not_exists: boolif true then IF NOT EXISTS is added to the statement
Implementations§
Source§impl Insert
impl Insert
Sourcepub fn get_value_map(&self) -> BTreeMap<Identifier, &Operand>
pub fn get_value_map(&self) -> BTreeMap<Identifier, &Operand>
return a sorted map of column names to Operands.
Trait Implementations§
impl StructuralPartialEq for Insert
Auto Trait Implementations§
impl Freeze for Insert
impl RefUnwindSafe for Insert
impl Send for Insert
impl Sync for Insert
impl Unpin for Insert
impl UnwindSafe for Insert
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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