prax-orm 0.8.0

A next-generation, type-safe ORM for Rust inspired by Prisma
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// A #[derive(Model)] struct with no #[prax(id)] field should fail with a
// clear error that names the missing primary-key attribute, not with some
// generic codegen failure deep inside the emitted module.

use prax_orm::Model;

#[derive(Model)]
#[prax(table = "no_pk")]
struct NoPk {
    name: String,
    email: String,
}

fn main() {}