[][src]Function roa_diesel::make_pool

pub fn make_pool<Conn>(url: impl Into<String>) -> Result<Pool<Conn>, PoolError> where
    Conn: Connection + 'static, 

Create a connection pool.

Example

use roa_diesel::{make_pool, Pool};
use diesel::sqlite::SqliteConnection;
use std::error::Error;

let pool: Pool<SqliteConnection> = make_pool(":memory:")?;
Ok(())