You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
?nsuri: https://eclipse.org/hawk/sqlite/queriesqueryset:
name: NonTimeawareQueriesqueries:
- name: "nodeIDsByLabel"sql: "SELECT rowid FROM nodes WHERE label = ?;"parameters:
- name: labeltype: String
- name: "nodeCountByLabelStatement"sql: "SELECT COUNT(1) FROM nodes WHERE label = ?;"parameters:
- name: labeltype: String
I expected to see one QuerySet with its proper name and two queries, each with their own name and parameters. This is in line with typical use of YAML, which supports three types of nodes: maps (essentially, objects), sequences (lists), and scalar values. I had expected to see maps turned into objects, sequences turned into ELists, and scalar values to be used to set attributes / references.
Unfortunately, I got something rather odd instead:
I had one Query with two parameters, for some reason.
I had to change the YAML file to this, which is cumbersome to type with all the -s, and it's also not natural YAML:
From a semantic point of view, it doesn't make sense to have queryset need to contain a list with its first element being a map whose key is name just to set the name of that queryset. Same goes for specifying its child objects.
The text was updated successfully, but these errors were encountered:
I tried writing some Flexmi files in YAML format today, using this custom metamodel:
queryset-metamodel.zip
I tried writing this bit:
I expected to see one QuerySet with its proper name and two queries, each with their own name and parameters. This is in line with typical use of YAML, which supports three types of nodes: maps (essentially, objects), sequences (lists), and scalar values. I had expected to see maps turned into objects, sequences turned into ELists, and scalar values to be used to set attributes / references.
Unfortunately, I got something rather odd instead:
I had one Query with two parameters, for some reason.
I had to change the YAML file to this, which is cumbersome to type with all the
-
s, and it's also not natural YAML:That produced the expected outline:
From a semantic point of view, it doesn't make sense to have
queryset
need to contain a list with its first element being a map whose key isname
just to set the name of that queryset. Same goes for specifying its child objects.The text was updated successfully, but these errors were encountered: