Skip to main content
This archive provider is as close to SQL queries as you can get. There is plenty of scope for shooting yourself in the foot. We provide all the built-in archive-providers so you don’t have to deal with the complexity of the The following grammar defines what dot-syntax really is:
The base table must be the same for all fields. In other words, the fields must all start on the same table. Field names must follow this grammar, otherwise exceptions will be generated. Additionally, all join field and table names must be valid, by reference to the runtime dictionary; but note that right-joins as well as left-joins using the square-bracket syntax to specify target table do not need to correspond to relations declared in the dictionary. Final field names can be anything, as long as the code handling that table recognizes the field name. If no specific code is found for a table, a generic (dynamic) extender will be used; this requires field names to match database field names. The dot syntax allows you to build your own custom query across whatever tables you like, including custom fields and custom tables. You will need to reference the database schema to navigate the relations accordingly: @database-table-listing-by-name

Examples

Select: Category table

category.name - the name of a category in the @table-Category
Corresponds to
Returns category names.

Filtering

category.tooltip - the description of the category
Corresponds to
Returns category name.

Outer join: Contact name and category name

contact.name is the name from the @table-contact contact.category_idx is a foreign-key to the @table-Category - which we can outer-join. contact.category_idx.name - is the category’s name - here we follow the category relation via an outer-join. To make this an inner join, we use a colon instead as a prefix to the join contact:category_idx.name
Equivalent to
returns

Right join: Category to contact

category.category_id - the primary key on the category category.(contact->category_idx).name - the primary key on the category right joined to contact table via the category_idx foreign key on the contact table.
Equivalent to
Returns categories and the associated company names.