pub struct Executor { /* private fields */ }Expand description
Query executor.
Implementations§
Source§impl Executor
impl Executor
pub fn new(context: ExecutionContext) -> Self
Create executor with a shared context (for persistent DDL across queries).
Sourcepub fn execute(&self, plan: &QueryPlan) -> ExecutorResult<QueryResult>
pub fn execute(&self, plan: &QueryPlan) -> ExecutorResult<QueryResult>
Execute a query plan.
Sourcepub fn execute_with_params(
&self,
plan: &QueryPlan,
params: &[Value],
) -> ExecutorResult<QueryResult>
pub fn execute_with_params( &self, plan: &QueryPlan, params: &[Value], ) -> ExecutorResult<QueryResult>
Execute a query plan with bound parameters. Parameters are indexed starting from 1 (e.g., $1, $2, etc.)
Auto Trait Implementations§
impl Freeze for Executor
impl RefUnwindSafe for Executor
impl Send for Executor
impl Sync for Executor
impl Unpin for Executor
impl UnsafeUnpin for Executor
impl UnwindSafe for Executor
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