19 lines
631 B
Markdown
Raw Normal View History

2026-04-09 12:38:43 +02:00
# Example Scripts
These scripts can be executed with:
```bash
make script SCRIPT=examples/scripts/ancestor.chase
cargo run -- script examples/scripts/ancestor.chase
2026-04-09 12:38:43 +02:00
```
Available examples:
- `ancestor.chase`: transitive closure over `Parent/2`
- `employee_departments.chase`: existential rule that creates labeled nulls
- `same_team.chase`: conjunctive query with a self-join
- `sql_basic.chase`: named-column filtering in the SQL frontend
- `sql_join.chase`: multi-table SQL join over predicate-backed tables
- `sql_self_join.chase`: self-join with SQL table aliases
- `sql_order_by.chase`: ordered SQL output with `ORDER BY`