Debian Codegraph @

test/command/suite/select/slices/sort_keys/column.test

raw
1 table_create Tags TABLE_PAT_KEY ShortText
2
3 table_create Memos TABLE_HASH_KEY ShortText
4 column_create Memos date COLUMN_SCALAR Time
5 column_create Memos tag COLUMN_SCALAR Tags
6
7 load --table Memos
8 [
9 {"_key": "Groonga is fast!", "date": "2016-05-19 12:00:00", "tag": "Groonga"},
10 {"_key": "Mroonga is fast!", "date": "2016-05-19 12:00:01", "tag": "Mroonga"},
11 {"_key": "Groonga sticker!", "date": "2016-05-19 12:00:02", "tag": "Groonga"},
12 {"_key": "Rroonga is fast!", "date": "2016-05-19 12:00:03", "tag": "Rroonga"}
13 ]
14
15 select Memos \
16 --slices[groonga].filter 'tag == "Groonga"' \
17 --slices[groonga].sort_keys 'date' \
18 --slices[groonga].output_columns '_key, date'