helge 2.0.0

Tiny wrapper around r2d2::Pool and diesel ConnectionManager to ease use in async contexts
Documentation

helge

Helge is a tiny wrapper around r2d2::Pool and diesel ConnectionManager to provide a simple way to use diesel postgres with r2d2 in an async context.

Example


let helge = Helge::<diesel::PgConnection>::new("postgres://localhost/somedatabase")?;
helge.query(|conn| {
    diesel::insert_into(users::table)
        .values(&NewUser {
            name: String::from("Helge"),
        })
        .execute(conn)
}).await?;

License: MIT