#[non_exhaustive]pub struct Query {
pub name: String,
pub kind: QueryKind,
pub statement: StatementKind,
pub cql: String,
pub keyspace: Option<String>,
pub table: String,
pub params: Vec<Param>,
pub columns: Vec<ResultColumn>,
pub row_columns: Vec<ResultColumn>,
pub span: Span,
}Expand description
A fully analyzed query.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringName exactly as written in the annotation.
kind: QueryKindHow the result is exposed.
statement: StatementKindThe statement type.
cql: StringWhitespace-normalized CQL text without comments or the trailing ;.
keyspace: Option<String>Keyspace of the table, if the schema qualified it.
table: StringThe table the query runs against.
params: Vec<Param>In bind-marker order.
columns: Vec<ResultColumn>Result columns of a SELECT. For QueryKind::Lwt these are the
columns the database reports back when the write was not applied;
all of them are nullable.
row_columns: Vec<ResultColumn>For QueryKind::Lwt: every column of the table. Some servers (e.g.
ScyllaDB) report the whole row for a failed conditional write, others
only the tested columns. Empty for other queries.
span: SpanThe whole statement in the source.
Trait Implementations§
impl StructuralPartialEq for Query
Auto Trait Implementations§
impl Freeze for Query
impl RefUnwindSafe for Query
impl Send for Query
impl Sync for Query
impl Unpin for Query
impl UnsafeUnpin for Query
impl UnwindSafe for Query
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