Debian Codegraph @

test/command/suite/select/function/in_values/without_index/reference/and.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
6 load --table Memos
7 [
8 {"_key": "Groonga is fast", "tag": "groonga"},
9 {"_key": "Mroonga is fast", "tag": "mroonga"},
10 {"_key": "Rroonga is fast", "tag": "rroonga"},
11 {"_key": "Droonga is fast", "tag": "droonga"},
12 {"_key": "Groonga is a HTTP server", "tag": "groonga"}
13 ]
14
15 select Memos \
16 --output_columns _key,tag \
17 --filter 'all_records() && in_values(tag, "groonga", "mroonga", "droonga")' \
18 --sortby _id