Skip to content
Merged
Show file tree
Hide file tree
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
34 changes: 34 additions & 0 deletions content/en/docs/refguide/modeling/domain-model/oql/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,40 @@ OQL queries do not take security into account out-of-the-box. This means that yo
You can try your OQL example online in the [OQL Playground](https://service.mendixcloud.com/p/OQL) demo app.
{{% /alert %}}

## Version Reference

OQL is under constant development so some expressions and features are not available in all versions. The tables below list features which were not available in Mendix 11.0.0, and note which version introduced them.

### General Features

| Feature | Mendix Version |
| --- | --- |
| Comments | 11.7.0 |

### [OQL Expressions](/refguide/oql-expression-syntax/)

| Feature | Mendix Version |
| --- | --- |
| DATEADD | 11.9.0 |
| DATEPARSE | 11.10.0 |
| DATETRUNC | 11.9.0 |
| LOCATE | 11.9.0 |
| STRING_AGG in View Entities and Datasets | 11.2.0 |
| SUBSTRING | 11.9.0 |

### [OQL Statements](/refguide/oql-statements/){#statement-versions}

The following are bulk update features.

| Feature | Mendix Version |
| --- | --- |
| OQL `DELETE` *beta* | 11.1.0 |
| OQL `UPDATE` attributes *beta* | 11.3.0 |
| OQL `UPDATE` associations *beta* | 11.4.0 |
| OQL `INSERT` attributes *beta* | 11.6.0 |
| OQL `INSERT` associations *beta* | 11.7.0 |
| OQL bulk update *GA* | 11.8.0 |

## Syntax basics

An OQL statement consists of [keywords](#reserved-oql-words), identifiers, [value literals](/refguide/oql-expression-syntax/#oql-literals) and [operators](/refguide/oql-expression-syntax/#oql-operators).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,7 @@ This can be much faster than retrieving the objects in a microflow and then upda
This feature is currently only accessible through the Java API by writing a Java action.

{{% alert color="info" %}}
From Mendix version 11.1, you can delete objects in bulk using OQL `DELETE` statements.

From Mendix version 11.3, you can also update object attributes in bulk using OQL `UPDATE` statements.

From Mendix version 11.4, you can update object associations as well as attributes in bulk using OQL `UPDATE` statements.

From Mendix version 11.6, you can insert new objects with attributes in bulk using OQL `INSERT` statements.

In Mendix versions below 11.8, this feature was considered experimental. From Mendix version 11.8, it is generally available.
These statements are not available from Mendix 11.0.0. See the summary in the [Version Reference](/refguide/oql/#statement-versions) section of the *OQL* document, or refer to the individual statements, below, to see which Mendix version you need.
{{% /alert %}}

## Java API for OQL updates
Expand Down