audb-codegen 0.1.10

Code generation for AuDB compile-time database applications
docs.rs failed to build audb-codegen-0.1.10
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

AuDB Code Generator

This crate provides code generation functionality for AuDB projects. It converts the internal Project model into executable Rust code.

Code Generation Pipeline

Project Model → CodeGenerator → Rust Source Code → Compilation

Generators

  • SchemaGenerator: Generates Rust structs from schemas
  • QueryGenerator: Generates query functions (TODO)
  • EndpointGenerator: Generates API endpoint handlers (TODO)
  • TestGenerator: Generates integration tests (TODO)

Usage

use audb_codegen::SchemaGenerator;
use audb::schema::Schema;

let generator = SchemaGenerator::new();
let code = generator.generate(&schema);