Trait PgConnection
Source pub trait PgConnection: Send {
// Required methods
fn execute<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
params: &'life2 [&'life3 (dyn ToSql + Sync)],
) -> Pin<Box<dyn Future<Output = Result<u64, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn query<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 mut self,
query: &'life1 str,
params: &'life2 [&'life3 (dyn ToSql + Sync)],
) -> Pin<Box<dyn Future<Output = Result<Vec<Row>, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}