pub trait Connection: Send + Sync {
// Required methods
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
parameters: Vec<Value>,
max_result_bytes: usize,
) -> Pin<Box<dyn Future<Output = Result<QueryResult, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
parameters: Vec<Value>,
max_result_bytes: usize,
) -> Pin<Box<dyn Future<Output = Result<QueryAsyncResult, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn execute_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
statements: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn changes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn last_insert_rowid<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<i64, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn summary(&self) -> Option<String> { ... }
}Expand description
A trait abstracting over operations to a SQLite database
Required Methods§
fn query<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
parameters: Vec<Value>,
max_result_bytes: usize,
) -> Pin<Box<dyn Future<Output = Result<QueryResult, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn query_async<'life0, 'life1, 'async_trait>(
&'life0 self,
query: &'life1 str,
parameters: Vec<Value>,
max_result_bytes: usize,
) -> Pin<Box<dyn Future<Output = Result<QueryAsyncResult, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute_batch<'life0, 'life1, 'async_trait>(
&'life0 self,
statements: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn changes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn last_insert_rowid<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<i64, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".