| 1 |
table_create Users TABLE_PAT_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Users hobby COLUMN_SCALAR ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Files TABLE_PAT_KEY ShortText |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Files owner COLUMN_SCALAR Users |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create Users files_owner_index COLUMN_INDEX Files owner |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
table_create Hobbies TABLE_PAT_KEY ShortText |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
column_create Hobbies users_hobby COLUMN_INDEX Users hobby |
| 14 |
[[0,0.0,0.0],true] |
| 15 |
load --table Users |
| 16 |
[ |
| 17 |
{"_key": "Alice", "hobby": "programming"}, |
| 18 |
{"_key": "Bob", "hobby": "system administration"}, |
| 19 |
{"_key": "Carlos", "hobby": "running"} |
| 20 |
] |
| 21 |
[[0,0.0,0.0],3] |
| 22 |
load --table Files |
| 23 |
[ |
| 24 |
{"_key": "/home/alice/.zshrc", "owner": "Alice"}, |
| 25 |
{"_key": "/home/bob/.bashrc", "owner": "Bob"}, |
| 26 |
{"_key": "/home/calros/public_html/index.html", "owner": "Carlos"} |
| 27 |
] |
| 28 |
[[0,0.0,0.0],3] |
| 29 |
select Files --filter '_key @^ "/home/" && owner.hobby @ "programming"' --output_columns '_key, owner, owner.hobby' |
| 30 |
[ |
| 31 |
[ |
| 32 |
0, |
| 33 |
0.0, |
| 34 |
0.0 |
| 35 |
], |
| 36 |
[ |
| 37 |
[ |
| 38 |
[ |
| 39 |
1 |
| 40 |
], |
| 41 |
[ |
| 42 |
[ |
| 43 |
"_key", |
| 44 |
"ShortText" |
| 45 |
], |
| 46 |
[ |
| 47 |
"owner", |
| 48 |
"Users" |
| 49 |
], |
| 50 |
[ |
| 51 |
"owner.hobby", |
| 52 |
"ShortText" |
| 53 |
] |
| 54 |
], |
| 55 |
[ |
| 56 |
"/home/alice/.zshrc", |
| 57 |
"Alice", |
| 58 |
"programming" |
| 59 |
] |
| 60 |
] |
| 61 |
] |
| 62 |
] |