pub struct Delete {
pub begin_batch: Option<BeginBatch>,
pub columns: Vec<IndexedColumn>,
pub table_name: FQName,
pub timestamp: Option<u64>,
pub where_clause: Vec<RelationElement>,
pub if_clause: Vec<RelationElement>,
pub if_exists: bool,
}
Expand description
the data for a delete statement.
Fields§
§begin_batch: Option<BeginBatch>
if set the statement starts with BEGIN BATCH
columns: Vec<IndexedColumn>
an optional list of columns to delete
table_name: FQName
the table to delete from
timestamp: Option<u64>
an optional timestamp to use for the deletion.
where_clause: Vec<RelationElement>
the were clause for the delete.
if_clause: Vec<RelationElement>
if present a list of key,values for the IF
clause
if_exists: bool
if true and if_clause is NONE then IF EXISTS
is added
Trait Implementations§
impl StructuralPartialEq for Delete
Auto Trait Implementations§
impl Freeze for Delete
impl RefUnwindSafe for Delete
impl Send for Delete
impl Sync for Delete
impl Unpin for Delete
impl UnwindSafe for Delete
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