pub struct QueryEngine { /* private fields */ }Expand description
Query engine for executing SQL queries against storage
Implementations§
Source§impl QueryEngine
impl QueryEngine
Sourcepub async fn execute(&self, sql: &str) -> QueryResult<Vec<Entry>>
pub async fn execute(&self, sql: &str) -> QueryResult<Vec<Entry>>
Execute a SQL query and return matching entries
Sourcepub async fn execute_full(&self, sql: &str) -> QueryResult<QueryResultData>
pub async fn execute_full(&self, sql: &str) -> QueryResult<QueryResultData>
Execute a SQL query and return full query result data (including schema)
Trait Implementations§
Source§impl Clone for QueryEngine
impl Clone for QueryEngine
Source§fn clone(&self) -> QueryEngine
fn clone(&self) -> QueryEngine
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QueryEngine
impl !RefUnwindSafe for QueryEngine
impl Send for QueryEngine
impl Sync for QueryEngine
impl Unpin for QueryEngine
impl UnsafeUnpin for QueryEngine
impl !UnwindSafe for QueryEngine
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