[ea2224]: / inst / queries / featureList.xq

Download this file

10 lines (8 with data), 260 Bytes

1
2
3
4
5
6
7
8
; featureList
(fn [dataset]
(query {:select [:field.name :feature.longtitle]
:from [:field]
:where [:= :dataset_id {:select [:id]
:from [:dataset]
:where [:= :name dataset]}]
:left-join [:feature [:= :feature.field_id :field.id]]}))