pub struct EngineDriver<'a> {
pub engine: &'a Engine,
pub table: &'a str,
pub params: &'a [SQLParam],
pub parallel: ParallelExecutor,
}Expand description
Bind a physical retrieval driver to the Engine statement and transaction boundary.
Fields§
§engine: &'a Engine§table: &'a str§params: &'a [SQLParam]§parallel: ParallelExecutorImplementations§
Source§impl<'a> EngineDriver<'a>
impl<'a> EngineDriver<'a>
pub fn new(engine: &'a Engine, table: &'a str, params: &'a [SQLParam]) -> Self
pub fn with_parallel(self, parallel: ParallelExecutor) -> Self
Trait Implementations§
Source§impl OperatorTreeDriver for EngineDriver<'_>
impl OperatorTreeDriver for EngineDriver<'_>
Source§type Error = SQLError
type Error = SQLError
Failure produced by the physical runtime while materialising a
node or one of its descendants.
fn execute_node(&self, tree: &OperatorTree) -> Result<OperatorOutput, SQLError>
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for EngineDriver<'a>
impl<'a> !UnwindSafe for EngineDriver<'a>
impl<'a> Freeze for EngineDriver<'a>
impl<'a> Send for EngineDriver<'a>
impl<'a> Sync for EngineDriver<'a>
impl<'a> Unpin for EngineDriver<'a>
impl<'a> UnsafeUnpin for EngineDriver<'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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more