pub struct InMemoryRedshiftQueryBackend;Expand description
Default in-memory backend: returns the hardcoded three-row mock result
(Number/Street/City) for single statements, and an empty result for
batch executions. Statements are stored with status Finished.
Trait Implementations§
Source§impl RedshiftQueryBackend for InMemoryRedshiftQueryBackend
impl RedshiftQueryBackend for InMemoryRedshiftQueryBackend
Source§fn execute_statement(
&self,
_sql: String,
) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>
fn execute_statement( &self, _sql: String, ) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>
Execute a single SQL statement and return the result asynchronously.
Source§fn batch_execute(
&self,
_sqls: Vec<String>,
) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>
fn batch_execute( &self, _sqls: Vec<String>, ) -> Pin<Box<dyn Future<Output = StatementResult> + Send>>
Execute a batch of SQL statements sequentially.
Batch executions typically do not return a result set.
Auto Trait Implementations§
impl Freeze for InMemoryRedshiftQueryBackend
impl RefUnwindSafe for InMemoryRedshiftQueryBackend
impl Send for InMemoryRedshiftQueryBackend
impl Sync for InMemoryRedshiftQueryBackend
impl Unpin for InMemoryRedshiftQueryBackend
impl UnsafeUnpin for InMemoryRedshiftQueryBackend
impl UnwindSafe for InMemoryRedshiftQueryBackend
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moreCreates a shared type from an unshared type.