Function diesel_connection::get_connection
source · pub fn get_connection() -> Result<PooledConnection, PoolError>
Expand description
Get postgress connection from pool. Use DATABASE_URL
env variable to set connection url
pub fn get_connection() -> Result<PooledConnection, PoolError>
Get postgress connection from pool. Use DATABASE_URL
env variable to set connection url