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 another page.
Trait Implementations§
Auto Trait Implementations§
impl Forget for CompiledQuery
impl Freeze for CompiledQuerywhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<QueryValue>: Freeze,
PhantomData<ReturnItem>: Freeze,
PhantomData<String>: Freeze,
impl Move for CompiledQuery
impl RefUnwindSafe for CompiledQuery
impl Send for CompiledQuerywhere
RawVecInner: Send,
impl Sync for CompiledQuerywhere
RawVecInner: Sync,
impl Unpin for CompiledQuery
impl UnsafeUnpin for CompiledQuerywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<QueryValue>: UnsafeUnpin,
PhantomData<ReturnItem>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for CompiledQuerywhere
RawVecInner: UnwindSafe,
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