sql-forge 0.5.0

Proc-macro combining compile-time SQL validation with a runtime QueryBuilder for dynamic queries using named parameters.
Documentation
#[derive(sqlx::FromRow)]
pub struct User {
    pub id: i64,
    pub name: String,
}

#[derive(sqlx::FromRow)]
pub struct AmountResult {
    pub total: Option<i64>,
}

#[derive(sqlx::Type)]
#[sqlx(transparent)]
pub struct TransparentId(pub i64);

pub struct RawId(pub i64);

pub struct BatchName {
    pub name: String,
}

pub struct BatchNamePrice {
    pub name: String,
    pub price: i64,
}

pub struct BatchIdCategory {
    pub id: i64,
    pub category: String,
}