19 lines
613 B
Markdown
19 lines
613 B
Markdown
# Example Scripts
|
|
|
|
These scripts can be executed with:
|
|
|
|
```bash
|
|
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`
|