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: FQName
the table name
columns: Vec<Identifier>
an the list of of column names to insert into.
values: InsertValues
the VALUES
to insert
using_ttl: Option<TtlTimestamp>
if set the timestamp for USING TTL
if_not_exists: bool
if 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§
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> 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