holocron 0.5.0

Declarative schema & query compiler — one YAML as the source of truth for SQL schema and a type-checked query catalog.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Should fail: two enum types share the name `status`.
# Caught by L2 (catalog build) — exit 1.
#
# Run: cargo run -- samples/error_duplicate_enum.holocron.yaml

types:
  - name: status
    enum: [Open, Closed]
  - name: status                  # collision: `status` already declared above
    enum: [Active, Inactive]

tables:
  - name: tasks
    columns:
      task_id: { type: uuid }
      state:   { type: status }
    primary_key: { columns: [task_id] }