Expand description
Generates per-model Rust modules (struct, filters, data inputs, ordering, CRUD).
For each model in the schema, this module produces:
- A data struct (e.g.,
User) withsqlx::FromRowand serde derives. - A filter submodule with
WhereInputandWhereUniqueInputtypes. - A data submodule with
CreateInputandUpdateInputtypes. - An order submodule with
OrderByInput. - An
Actionsstruct exposingcreate,find_unique,find_many,update,delete,upsert, and batch operations. - Query builder structs that chain filters, ordering, pagination, and
include clauses before calling
.exec().
Functionsยง
- generate_
model_ module - Generate the complete module for a single model.