prax-codegen 0.10.0

Procedural macros for code generation in the Prax ORM
Documentation
1
2
3
4
5
6
7
8
9
10
// Fixture: group_by! with an empty by: list
// Expected diagnostic: "group_by! requires at least one column in `by:`"

fn main() {
    let client = ();
    let _ = prax_codegen::group_by!(client.user, {
        by: [],
        _count: { _all: true },
    });
}