pub fn new_unpooled(url: Url) -> Result<Self, QueryError> {
        let runtime = super::default_runtime();
        let conn = runtime.block_on(connector::PostgreSql::from_params(url.try_into()?))?;
        let handle = ConnectionPool::Single(conn);

        Ok(Postgresql { conn: handle, runtime })
    }
/// Create a new single connection.
Create a new single connection.
Create a new single connection .
pub fn new_unpooled(url: Url) -> Result<Self, QueryError> {
        let runtime = super::default_runtime();
        let conn = runtime.block_on(connector::PostgreSql::from_params(url.try_into()?))?;
        let handle = ConnectionPool::Single(conn);
        Ok(Postgresql { conn: handle, runtime })
    }
pub fn new_unpooled ( url : Url ) -> Result < Self , QueryError > { let runtime = super :: default_runtime ( ) ; let conn = runtime . block_on ( connector :: PostgreSql :: from_params ( url . try_into ( ) ? ) ) ? ; let handle = ConnectionPool :: Single ( conn ) ; Ok ( Postgresql { conn : handle , runtime } ) }
Create a new single connection.
Create a new single connection .
url
Url
url
Url