che-orm 0.4.0

Typed SQLite and PostgreSQL ORM for che-rest applications
Documentation
use che_orm::Model;

#[derive(Model)]
#[orm(table = "users")]
struct User {
    #[orm(primary_key)]
    id: i64,
}

#[derive(Model)]
#[orm(table = "posts")]
struct Post {
    #[orm(primary_key)]
    id: i64,
    #[orm(foreign_key = User, on_delete = "set null")]
    user_id: i64,
}

fn main() {}