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
18
# Should fail: the view selects a column the table doesn't have.
# Caught by L3 — exit 1. The diagnostic lists the columns that ARE on
# the relation as a "did you mean" note.
#
# Run: cargo run -- samples/error_unknown_column.holocron.yaml

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

views:
  - name: bad_column_view
    from: { table: tasks, as: t }
    select:
      - { column: ghost_column, from: t }