ruprizzle-codegen 1.6.0

Rust code generation for the ruprizzle ORM
Documentation

ruprizzle-codegen

Crates.io docs.rs License

Rust entity and query-builder code generation for ruprizzle-orm.

ruprizzle-codegen takes the validated schema IR produced by ruprizzle-parser and emits the typed client code that powers the ruprizzle runtime. This includes model structs, column tokens, relation accessors, insert/update types, and the Db root struct that a generated project imports.

Responsibilities

  • Model code generation — structs, fields, and Model trait implementations.
  • Column tokens — type-safe column references used in filters and projections.
  • Relation code — include helpers, one-to-one and one-to-many accessors, and back-references.
  • Insert / update types — typed builders for creating and modifying rows.
  • Db root — the generated client entry point (Db::connect, repositories, transactions).
  • Stable output — generated code is deterministic and lint-clean.

When to use

You do not typically depend on this crate directly. The ruprizzle-cli generate command and the build-time pipeline call it for you. Advanced users who want to embed code generation into their own tools can use the generate_all API.

Keywords

orm, sql, database, codegen, migrations