...
Normally one query is installed in Odysseus when executing a qdlQDL-query. However, sometimes it might be useful to create several queries in a loop. Therefore you can call methods in a qdlQDL-query to manually create queries. In this context you should set the metadata ‘autoauto_
create’ to falsecreate
to false.
Code Block |
---|
|
query Q_3 (auto_create=false){
for (int i = 1; i<=5; i++) {
ODLSelect select{predicate = "bid.AUCTION = "+i};
bid -> select;
start(select);
}
} |
Grammar
Code Block |
---|
|
QDLModel ::= (Namespace)* (Query | Class | Interface)*.
Query ::= "query" ID ("(" (Metadata ("," Metadata))* ")")? StatementBlock.
SubscribeExpression ::= Expression ("->" | "<-") Expression.
PortExpression ::= Expression ":" Expression. |