prax-orm 0.10.0

A next-generation, type-safe ORM for Rust inspired by Prisma
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! `upsert!` without a `create:` block should fail with a clear
//! required-key diagnostic.

prax_orm::prax_schema!("prax/schema.prax");

fn main() {
    let _op = prax_orm::upsert!(unimplemented!(), for User, {
        where: { email: "a@x.com" },
        update: { name: { set: "Renamed" } },
    });
}