Interacting with data
Last updated
Was this helpful?
Last updated
Was this helpful?
In order to continue, you must understand , &
Mandarine repositories work directly with , since MQL serves as the primary query statement writer.
The @CustomQuery
decorator allows you to write SQL queries in your repositories. While it is true that MQL & Mandarine's ORM aim to remove as much SQL & database code from your application's layer, it is also true that some use cases may require the use of complex SQL queries.
Syntax:
query
: Query to execute
secure
: whether the query has secured parameters such as $1, $2, ...
Default: True
They keyword "await" should be used for all repository methods