pub struct SqlitePlanner<'a> { /* private fields */ }Expand description
The SQLite planner over one repo of the store.
Implementations§
Source§impl<'a> SqlitePlanner<'a>
impl<'a> SqlitePlanner<'a>
pub fn new(conn: &'a Connection, repo_id: &str) -> Self
Sourcepub fn try_plan(&self, query: &Query, params: &[Value]) -> Result<Option<Plan>>
pub fn try_plan(&self, query: &Query, params: &[Value]) -> Result<Option<Plan>>
Plan query: Ok(None) when the shape declines, Ok(Some(plan))
with the produced rows (tagged like the context’s root rows) and the
residual, Err when the statement itself failed (a store error, not
a decline — the runner reports it rather than silently rescanning).
Trait Implementations§
Source§impl QueryPlanner for SqlitePlanner<'_>
impl QueryPlanner for SqlitePlanner<'_>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for SqlitePlanner<'a>
impl<'a> !Send for SqlitePlanner<'a>
impl<'a> !Sync for SqlitePlanner<'a>
impl<'a> !UnwindSafe for SqlitePlanner<'a>
impl<'a> Freeze for SqlitePlanner<'a>
impl<'a> Unpin for SqlitePlanner<'a>
impl<'a> UnsafeUnpin for SqlitePlanner<'a>
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