premix-orm 1.0.8-alpha

Alpha research ORM for Rust. Facade crate for premix-core and premix-macros (not production-ready).
Documentation
1
2
3
4
5
6
7
/// Actix-web helper type alias for Premix pools.
pub type PremixData<DB> = actix_web::web::Data<sqlx::Pool<DB>>;

/// Wrap a Premix pool as Actix application data.
pub fn premix_data<DB: sqlx::Database>(pool: sqlx::Pool<DB>) -> PremixData<DB> {
    actix_web::web::Data::new(pool)
}