puerto 0.20.0

Puerto — Rust full-stack DDD framework CLI. Scaffolds Clean Architecture projects with auto-wired DI, SQLx support, and zero manual wiring. Formerly puerto-framework.
1
2
3
4
5
6
7
8
9

/// The foreign keys a write goes through (ADR-0022 of Puerto): the database rejects a reference to
/// a row that does not exist, and the field it names is the caller's error.
const REFERENCES: &[ForeignKey] = &[
{% for r in references %}    ForeignKey {
        constraint: "{{ r.constraint }}",
        field: "{{ r.field }}",
    },
{% endfor %}];