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 read-only SQL plus the metadata required to decode its result.
See crates/khive-query/docs/api/sql-compilation.md for lowering rules.
Fields§
§sql: StringSQL statement using positional ?N placeholders.
params: Vec<QueryValue>Parameters in placeholder order.
return_vars: Vec<ReturnItem>Caller-requested projections in result-column order.
warnings: Vec<String>Non-fatal validation or compilation diagnostics.
truncation_check: Option<TruncationCheck>Sentinel metadata when SQL fetches max_limit + 1 to detect real truncation.
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