pub struct ParsedQuery {
pub query_type: QueryType,
pub table: Option<TableId>,
pub columns: Vec<String>,
pub where_clause: Option<WhereClause>,
pub values: Vec<Value>,
pub set_clause: HashMap<String, Value>,
pub order_by: Vec<OrderByClause>,
pub limit: Option<usize>,
pub cql: String,
}Expand description
Parsed CQL query representation
Fields§
§query_type: QueryTypeQuery type
table: Option<TableId>Target table (if applicable)
columns: Vec<String>Column selections (for SELECT)
where_clause: Option<WhereClause>WHERE clause conditions
values: Vec<Value>VALUES for INSERT
set_clause: HashMap<String, Value>SET clause for UPDATE
order_by: Vec<OrderByClause>ORDER BY clause
limit: Option<usize>LIMIT clause
cql: StringOriginal CQL text
Trait Implementations§
Source§impl Clone for ParsedQuery
impl Clone for ParsedQuery
Source§fn clone(&self) -> ParsedQuery
fn clone(&self) -> ParsedQuery
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedQuery
impl RefUnwindSafe for ParsedQuery
impl Send for ParsedQuery
impl Sync for ParsedQuery
impl Unpin for ParsedQuery
impl UnsafeUnpin for ParsedQuery
impl UnwindSafe for ParsedQuery
Blanket Implementations§
impl<T> Allocation for T
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