Debian Codegraph @

test/command/suite/select/function/in_records/one.test

raw
1 table_create Users TABLE_HASH_KEY ShortText
2
3 table_create Reports TABLE_NO_KEY
4 column_create Reports user COLUMN_SCALAR Users
5
6 table_create Logs TABLE_NO_KEY
7 column_create Logs user COLUMN_SCALAR Users
8
9 load --table Reports
10 [
11 {"user": "alice"},
12 {"user": "david"}
13 ]
14
15 load --table Logs
16 [
17 {"user": "alice"},
18 {"user": "bob"},
19 {"user": "chris"},
20 {"user": "david"}
21 ]
22
23 select Logs \
24 --filter 'in_records(Reports, user, "==", "user")'