Debian Codegraph @

test/command/suite/select/query/equal/multiple_column_index.test

raw
1 table_create Paths TABLE_PAT_KEY ShortText
2
3 table_create Files TABLE_NO_KEY
4 column_create Files path COLUMN_SCALAR Paths
5 column_create Files sub_paths COLUMN_VECTOR Paths
6
7 column_create Paths index COLUMN_INDEX|WITH_SECTION Files path,sub_paths
8
9 load --table Files
10 [
11 {
12 "path": "/var/lib/www/index.html",
13 "sub_paths": ["var", "lib", "www", "index.html"]
14 },
15 {
16 "path": "/var/log/messages",
17 "sub_paths": ["var", "log", "messages"]
18 },
19 {
20 "path": "var",
21 "sub_paths": []
22 }
23 ]
24
25 select Files --query path:var --output_columns _id,path,_score