pub trait SqlReader: Send + 'static {
// Required methods
fn query_row<'life0, 'async_trait>(
&'life0 mut self,
statement: SqlStatement,
) -> Pin<Box<dyn Future<Output = StorageResult<Option<SqlRow>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_all<'life0, 'async_trait>(
&'life0 mut self,
statement: SqlStatement,
) -> Pin<Box<dyn Future<Output = StorageResult<Vec<SqlRow>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn query_scalar<'life0, 'async_trait>(
&'life0 mut self,
statement: SqlStatement,
) -> Pin<Box<dyn Future<Output = StorageResult<Option<SqlValue>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn explain<'life0, 'async_trait>(
&'life0 mut self,
statement: SqlStatement,
) -> Pin<Box<dyn Future<Output = StorageResult<Vec<SqlRow>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}Expand description
Read-capable SQL connection.