pub async fn create_pg_pool(db_url: &str) -> sqlx::Result<PgPool> {

    let pool = PgPool::connect(db_url).await?;
    Ok(pool)
}
///
/// Open a connection to a database
///
Open a connection to a database
Open a connection to a database
pub async fn create_pg_pool(db_url: &str) -> sqlx::Result<PgPool> {
    let pool = PgPool::connect(db_url).await?;
    Ok(pool)
}
pub async fn create_pg_pool ( db_url : & str ) -> sqlx :: Result < PgPool > { let pool = PgPool :: connect ( db_url ) . await ? ; Ok ( pool ) }
Open a connection to a database
Open a connection to a database
db_url
&str