Debian Codegraph @

test/command/suite/select/drilldowns/keys/multiple.test

raw
1 table_create Tags TABLE_PAT_KEY ShortText
2
3 table_create Memos TABLE_HASH_KEY ShortText
4 column_create Memos tag COLUMN_SCALAR Tags
5 column_create Memos date COLUMN_SCALAR Time
6
7 load --table Memos
8 [
9 {"_key": "Groonga is fast!", "tag": "Groonga", "date": "2014-11-16 00:00:00"},
10 {"_key": "Mroonga is fast!", "tag": "Mroonga", "date": "2014-11-16 00:00:00"},
11 {"_key": "Groonga sticker!", "tag": "Groonga", "date": "2014-11-16 00:00:00"},
12 {"_key": "Rroonga is fast!", "tag": "Rroonga", "date": "2014-11-17 00:00:00"},
13 {"_key": "Groonga is good!", "tag": "Groonga", "date": "2014-11-17 00:00:00"}
14 ]
15
16 select Memos \
17 --drilldowns[tag].keys tag,date \
18 --drilldowns[tag].output_columns _key[0],_key[1],_nsubrecs