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
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Should fail: the view's `from:` references a table that wasn't declared.
# Caught by L3 (resolve views) — exit 1. The diagnostic lists every relation
# the catalog DID know about, as a "did you mean" note.
#
# Run: cargo run -- samples/error_unknown_source.yml

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

views:
  - name: missing_table_view
    from: { table: doesnt_exist, as: m }
    select:
      - { column: task_id, from: m }