pub struct InMemoryQueryEngine;Expand description
A general-purpose in-memory query engine that executes SelectQuery against a
Vec<Record>. This replaces the database engine for non-SQL data sources.
Implementations§
Source§impl InMemoryQueryEngine
impl InMemoryQueryEngine
Sourcepub fn execute(query: &SelectQuery, rows: Vec<Record>) -> QueryResult
pub fn execute(query: &SelectQuery, rows: Vec<Record>) -> QueryResult
Execute a SelectQuery against the given rows and return a QueryResult.
Processing order: filter → aggregation (if any) → sort → paginate → project.
Auto Trait Implementations§
impl Freeze for InMemoryQueryEngine
impl RefUnwindSafe for InMemoryQueryEngine
impl Send for InMemoryQueryEngine
impl Sync for InMemoryQueryEngine
impl Unpin for InMemoryQueryEngine
impl UnsafeUnpin for InMemoryQueryEngine
impl UnwindSafe for InMemoryQueryEngine
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