pub struct CompiledQuery {
pub sql: String,
pub params: Vec<QueryValue>,
pub return_vars: Vec<ReturnItem>,
pub warnings: Vec<String>,
pub truncation_check: Option<TruncationCheck>,
}Expand description
Parameterized SQL emitted by the compiler, ready for execution by the runtime.
Fields§
§sql: String§params: Vec<QueryValue>§return_vars: Vec<ReturnItem>§warnings: Vec<String>§truncation_check: Option<TruncationCheck>Present when the server-side max_limit cap is the binding
constraint on this query (no explicit LIMIT, or an explicit
LIMIT above the cap). The emitted SQL fetches max_limit + 1
rows (a sentinel row) so the execution site can detect whether the
true match count exceeded the cap and warn accordingly, instead of
inferring truncation from the requested LIMIT alone (issue #777).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CompiledQuery
impl RefUnwindSafe for CompiledQuery
impl Send for CompiledQuery
impl Sync for CompiledQuery
impl Unpin for CompiledQuery
impl UnsafeUnpin for CompiledQuery
impl UnwindSafe for CompiledQuery
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