Querying Data
Selector Built-in Functions
These functions are available via the object's namespace, e.g. Person:{function}.
They can be used to read sets of data from the persistence layer. The final four in the table below (union, diff, intersect, and and) can be used to build up a complex selector using a combination of other selector BIFs as parameters. The other selectors all take an object's attribute as first parameter, and one or more values as the next parameter(s).
Function | Syntax | Description | Example |
|---|---|---|---|
|
| Returns all records from the table. |
|
|
| Returns records with value of |
|
|
| Returns records with value of |
|
|
| Returns records with |
|
|
| Returns records with |
|
|
| Returns records with value of |
|
|
| Returns records with value of |
|
|
| Returns records with value of |
|
|
| Returns records with value of |
|
|
| Returns records with value of |
|
|
| Returns records with value of |
|
|
| Returns records with value of |
|
|
| Returns records with a relationship/link between |
|
|
| Returns records without a relationship/link between |
|
|
| Returns records with substring |
|
|
| Returns records with substring |
|
|
| Returns records with substring |
|
|
| Returns records with substring |
|
|
| Returns records with substring |
|
|
| Returns records with substring |
|
|
| Combines the results of two or more selectors. Does not return the same record twice. |
|
|
| Compares the results of two or more selectors and returns only the difference. |
|
|
| Returns records for which all the selectors are true. |
|
|
| Returns records for which all the selectors are true. |
|
Data Subsets
Having populated a collection with a selector BIF, you can further refine your selection by assigning a subset of said collection to a new collection by using the select BIF. This BIF is available via the collection variable and takes one or a combination of the above selector BIFs as parameter. See the Collections for details.
Executing SQL
Helium provides functionality to execute SQL natively from the DSL. Details can be found here.
Additional Mentions and References