2026-04-10 10:59:22 +02:00

613 B

Example Scripts

These scripts can be executed with:

make script SCRIPT=examples/scripts/ancestor.ech
cargo run -- script examples/scripts/ancestor.ech

Available examples:

  • ancestor.ech: transitive closure over Parent/2
  • employee_departments.ech: existential rule that creates labeled nulls
  • same_team.ech: conjunctive query with a self-join
  • sql_basic.ech: named-column filtering in the SQL frontend
  • sql_join.ech: multi-table SQL join over predicate-backed tables
  • sql_self_join.ech: self-join with SQL table aliases
  • sql_order_by.ech: ordered SQL output with ORDER BY