pub struct MockAdapter { /* private fields */ }Implementations§
Source§impl MockAdapter
impl MockAdapter
pub fn new() -> Self
pub fn with_result(result: QueryResult) -> Self
pub fn with_capabilities(self, capabilities: AdapterCapabilities) -> Self
pub fn last_plan(&self) -> Option<String>
Trait Implementations§
Source§impl Clone for MockAdapter
impl Clone for MockAdapter
Source§fn clone(&self) -> MockAdapter
fn clone(&self) -> MockAdapter
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 moreSource§impl Debug for MockAdapter
impl Debug for MockAdapter
Source§impl Default for MockAdapter
impl Default for MockAdapter
Source§impl ExecutorAdapter for MockAdapter
impl ExecutorAdapter for MockAdapter
fn execute(&self, plan: &PhysicalPlan) -> ChrysoResult<QueryResult>
fn capabilities(&self) -> AdapterCapabilities
fn execute_with_params( &self, plan: &PhysicalPlan, params: &[ParamValue], ) -> ChrysoResult<QueryResult>
fn validate_plan(&self, plan: &PhysicalPlan) -> ChrysoResult<()>
Auto Trait Implementations§
impl !Freeze for MockAdapter
impl !RefUnwindSafe for MockAdapter
impl Send for MockAdapter
impl !Sync for MockAdapter
impl Unpin for MockAdapter
impl UnwindSafe for MockAdapter
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