executeQuery
Allows the execution of HQL queries using several nice arguments and returns either an array of entities or a query as specified by the asQuery argument. The params filtering can be using named or positional.
Returns
This function returns any
Arguments
Key | Type | Required | Default | Description |
query | string | Yes | --- | |
params | any | No | [runtime expression] | |
offset | numeric | No | 0 | |
max | numeric | No | 0 | |
timeout | numeric | No | 0 | |
asQuery | boolean | No | true | |
unique | boolean | No | false | Return a unique result |
datasource | string | No | --- | Use a specific or default datasource |
Examples
Last updated