# Trait GetConnection

Source

    pub trait GetConnection {
        type Conn;

        // Required method
        fn get_conn<'life0, 'async_trait>(
            &'life0 self,
        ) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>
           where Self: 'async_trait,
                 'life0: 'async_trait;
    }

Expand description

Get database connection

## Required Associated Types§

Source

#### type Conn

database connection type

## Required Methods§

Source

#### fn get_conn<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = DBResult<Self::Conn>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

database specific error-type get connection from connection pool

## Implementors§