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
# Kitchen-sink: this file contains MULTIPLE errors of different kinds.
#
# ⚠️ Current limitation: the compiler bails on the FIRST error and exits.
# So a single run will only surface one of the issues below — fix it,
# re-run, the next one shows up, repeat. "Collect all errors" is a planned
# improvement (CLAUDE.md HOLO-DIAGNOSTICS).
#
# Errors in this file:
#   1. line 20 — duplicate enum type `status`
#   2. line 28 — unknown column type `not_a_type`
#   3. line 35 — duplicate relation `tasks`
#   4. line 42 — view sources an unknown table (`ghost`)
#   5. line 50 — view selects an unknown alias (`x`)
#
# Run: cargo run -- samples/error_multiple.yml
#
# Tip: comment out the higher-line errors as you fix them to see the
# lower ones surface, until the file compiles cleanly.

types:
  - name: status
    enum: [Open, Done]
  - name: status                  # 1. duplicate enum
    enum: [Pending, Active]

tables:
  - name: tasks
    columns:
      task_id:  { type: uuid }
      priority: { type: not_a_type }   # 2. unknown type
    primary_key: { columns: [task_id] }

  - name: tasks                   # 3. duplicate relation
    columns:
      id: { type: uuid }
    primary_key: { columns: [id] }

views:
  - name: ghost_view
    from: { table: ghost, as: g }     # 4. unknown source table
    select:
      - { column: id, from: g }

  - name: bad_alias_view
    from: { table: tasks, as: t }
    select:
      - { column: task_id, from: x }  # 5. unknown alias