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

19 lines
631 B
Markdown

# Example Scripts
These scripts can be executed with:
```bash
make script SCRIPT=examples/scripts/ancestor.chase
cargo run -- script examples/scripts/ancestor.chase
```
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`