holocron 0.2.0

Declarative schema & query compiler — one YAML as the source of truth for SQL schema and a type-checked query catalog.
Documentation
# Should fail: the view's `from` and `join` both use alias `t`.
# Aliases must be unique within a view's scope.
# Caught by L3 (resolve views) — exit 1.
#
# Run: cargo run -- samples/error_duplicate_alias.yml

tables:
  - name: a
    columns: { id: { type: uuid } }
    primary_key: { columns: [id] }
  - name: b
    columns: { id: { type: uuid } }
    primary_key: { columns: [id] }

views:
  - name: collision_view
    from: { table: a, as: t }
    join:
      - { table: b, as: t, type: INNER, on: "a.id = b.id" }
    select:
      - { column: id, from: t }