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
18
# Should fail: select expressions (raw `sql:`) aren't supported in this
# slice yet. They'll come in with the typed-escape-hatch step (DESIGN §6.1).
# Caught by L3 (resolve views) — exit 1.
#
# Run: cargo run -- samples/error_unsupported_expression.yml

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

views:
  - name: expr_view
    from: { table: tasks, as: t }
    select:
      - { sql: "UPPER(t.title)", as: upper_title }   # raw expression — not yet supported