Skip to content

Docs: Give clearer example of multiple query predicates in one ql file #17277

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 11, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions docs/prepare-db-upgrade.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,16 @@ extended.rel: reorder input.rel (int id, string name, int parent) id name parent
// QLL library, and will run in the context of the *old* dbscheme.
relationname.rel: run relationname.qlo

// Create relationname.rel by running the query predicate 'predicatename' in
// relationname.qlo and writing the query results as a .rel file. This command
// Create relation1.rel by running the query predicate 'predicate1' in upgrade.qlo
// and writing the query results as a .rel file, and running 'predicate2' in
// upgrade.qlo and writing the query results as a .rel file. This command
// expects the upgrade relation to be a query predicate, which has the advantage
// of allowing multiple upgrade relations to appear in the same .ql file as
// multiple query predicates. The query file should be named relationname.ql and
// multiple query predicates. The query file should be named upgrade.ql and
// should be placed in the upgrade directory. It should avoid using the default
// QLL library, and will run in the context of the *old* dbscheme.
relationname.rel: run relationname.qlo predicatename
relation1.rel: run upgrade.qlo predicate1
relation2.rel: run upgrade.qlo predicate2
```

### Testing your scripts
Expand Down
Loading