Skip to main content

PoolAdapter

Trait PoolAdapter 

Source
pub trait PoolAdapter:
    Send
    + Sync
    + 'static {
    // Required methods
    fn query_json<'life0, 'life1, 'async_trait>(
        &'life0 self,
        sql: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Map<String, Value>>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn pool_status(&self) -> PoolStatus;
}

Required Methods§

Source

fn query_json<'life0, 'life1, 'async_trait>( &'life0 self, sql: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Map<String, Value>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn pool_status(&self) -> PoolStatus

Implementations on Foreign Types§

Source§

impl PoolAdapter for Pool

Source§

fn query_json<'life0, 'life1, 'async_trait>( &'life0 self, sql: &'life1 str, ) -> Pin<Box<dyn Future<Output = Result<Vec<Map<String, Value>>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn pool_status(&self) -> PoolStatus

Implementors§