Skip to content
This repository has been archived by the owner on Mar 17, 2022. It is now read-only.

Commit

Permalink
Merge branch 'master' into feature_275
Browse files Browse the repository at this point in the history
  • Loading branch information
Holger Stitz committed Nov 21, 2016
2 parents b6d9bed + c6cba19 commit f2aa852
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions config.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,26 @@
},
"column_query": "cast(id as text) as id, a_name, a_cat1, a_cat2, a_int, a_real",

"queryStats": "select min(a_int) as a_int_min, max(a_int) as a_int_max, min(a_real) as a_real_min, max(a_real) as a_real_max from ${table}",
"queryCategories": "select distinct %(col)s as cat from ${table} where %(col)s is not null and %(col)s <> ''",
"queryStats": "SELECT min(a_int) as a_int_min, max(a_int) as a_int_max, min(a_real) as a_real_min, max(a_real) as a_real_max FROM ${table}",
"queryCategories": "SELECT distinct %(col)s as cat FROM ${table} WHERE %(col)s is not null AND %(col)s <> ''",

"query": "select ${targid_dummy.index}, ${column_query} from ${table} t",
"querySlice": "select ${targid_dummy.index}, ${column_query} from ${table} t where _index in (:query)",
"querySample": "select ${targid_dummy.index} from ${table} t order by random() limit %s",
"querySort": "select ${targid_dummy.index}, %s as _score from ${table} t order by _score %s",
"querySearch": "select ${targid_dummy.index} from ${table} t where %s like :query"
"query": "SELECT ${targid_dummy.index}, ${column_query} FROM ${table} t",
"querySlice": "SELECT ${targid_dummy.index}, ${column_query} FROM ${table} t WHERE _index IN (:query)",
"querySample": "SELECT ${targid_dummy.index} FROM ${table} t ORDER BY random() LIMIT %s",
"querySort": "SELECT ${targid_dummy.index}, %s as _score FROM ${table} t ORDER BY _score %s",
"querySearch": "SELECT ${targid_dummy.index} FROM ${table} t WHERE %s LIKE :query"
},
"a_namedset": {
"idType": "IDTypeA",
"query": [
"SELECT ${targid_dummy.index}, ${targid_dummy.views.a.column_query} ",
"FROM ${targid_dummy.views.a.table} t WHERE id IN (%(ids)s)"
],
"replacements": ["ids"]
},
"a_filtered": {
"idType": "IDTypeA",
"query": "select ${targid_dummy.index}, ${targid_dummy.views.a.column_query} from a t WHERE a_cat1 = :cat",
"query": "SELECT ${targid_dummy.index}, ${targid_dummy.views.a.column_query} FROM ${targid_dummy.views.a.table} t WHERE a_cat1 = :cat",
"arguments": ["cat"]
},
"b": {
Expand Down

0 comments on commit f2aa852

Please sign in to comment.