Debian Codegraph @

test/command/suite/select/drilldowns/table/one.test

raw
1 table_create Tags TABLE_PAT_KEY ShortText
2 column_create Tags category COLUMN_SCALAR ShortText
3
4 table_create Memos TABLE_HASH_KEY ShortText
5 column_create Memos tag COLUMN_SCALAR Tags
6
7 load --table Memos
8 [
9 {"_key": "Groonga is fast!", "tag": "Groonga"},
10 {"_key": "Mroonga is fast!", "tag": "Mroonga"},
11 {"_key": "Groonga sticker!", "tag": "Groonga"},
12 {"_key": "Rroonga is fast!", "tag": "Rroonga"}
13 ]
14
15 load --table Tags
16 [
17 {"_key": "Groonga", "category": "C/C++"},
18 {"_key": "Mroonga", "category": "C/C++"},
19 {"_key": "Rroonga", "category": "Ruby"}
20 ]
21
22 select Memos \
23 --drilldowns[category].table tag \
24 --drilldowns[category].keys category \
25 --drilldowns[category].output_columns _key,_nsubrecs \
26 --drilldowns[tag].keys tag \
27 --drilldowns[tag].output_columns _key,_nsubrecs,category