pub struct QueryExecutor { /* private fields */ }Expand description
Query executor
Implementations§
Source§impl QueryExecutor
impl QueryExecutor
Sourcepub fn new(
storage: Arc<StorageEngine>,
schema: Arc<SchemaManager>,
config: &Config,
) -> Self
pub fn new( storage: Arc<StorageEngine>, schema: Arc<SchemaManager>, config: &Config, ) -> Self
Create a new query executor
Sourcepub async fn execute(&self, plan: &QueryPlan) -> Result<QueryResult>
pub async fn execute(&self, plan: &QueryPlan) -> Result<QueryResult>
Execute a query plan.
Instrumented as query.execute (issue #1035) so that surfaces which reach
the legacy executor directly — notably prepared/parameterized statements
that bypass QueryEngine::execute — still root a query span tree under
which the per-branch sub-spans (query.point_lookup, query.table_scan,
…) and the read-path spans (issue #1034) nest. When invoked via
QueryEngine::execute this nests under that span. The bounded plan-type
attribute is recorded; the query text and key values never are.
Trait Implementations§
Source§impl Clone for QueryExecutor
impl Clone for QueryExecutor
Source§fn clone(&self) -> QueryExecutor
fn clone(&self) -> QueryExecutor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for QueryExecutor
impl !UnwindSafe for QueryExecutor
impl Freeze for QueryExecutor
impl Send for QueryExecutor
impl Sync for QueryExecutor
impl Unpin for QueryExecutor
impl UnsafeUnpin for QueryExecutor
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