| 1 |
table_create Users TABLE_HASH_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Users birthday COLUMN_SCALAR Time |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Files TABLE_NO_KEY |
| 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 Birthdays TABLE_PAT_KEY Time |
| 12 |
[[0,0.0,0.0],true] |
| 13 |
column_create Birthdays users_birthday COLUMN_INDEX Users birthday |
| 14 |
[[0,0.0,0.0],true] |
| 15 |
load --table Users |
| 16 |
[ |
| 17 |
{"_key": "Alice", "birthday": "1992-02-09 00:00:00"}, |
| 18 |
{"_key": "Bob", "birthday": "1988-01-04 00:00:00"}, |
| 19 |
{"_key": "Carlos", "birthday": "1982-12-29 00:00:00"} |
| 20 |
] |
| 21 |
[[0,0.0,0.0],3] |
| 22 |
load --table Files |
| 23 |
[ |
| 24 |
{"owner": "Alice"}, |
| 25 |
{"owner": "Bob"}, |
| 26 |
{"owner": "Carlos"} |
| 27 |
] |
| 28 |
[[0,0.0,0.0],3] |
| 29 |
select Files --filter 'owner.birthday <= "1988-01-04 00:00:00"' --output_columns '_id, owner, owner.birthday' |
| 30 |
[ |
| 31 |
[ |
| 32 |
0, |
| 33 |
0.0, |
| 34 |
0.0 |
| 35 |
], |
| 36 |
[ |
| 37 |
[ |
| 38 |
[ |
| 39 |
2 |
| 40 |
], |
| 41 |
[ |
| 42 |
[ |
| 43 |
"_id", |
| 44 |
"UInt32" |
| 45 |
], |
| 46 |
[ |
| 47 |
"owner", |
| 48 |
"Users" |
| 49 |
], |
| 50 |
[ |
| 51 |
"owner.birthday", |
| 52 |
"Time" |
| 53 |
] |
| 54 |
], |
| 55 |
[ |
| 56 |
3, |
| 57 |
"Carlos", |
| 58 |
409935600.0 |
| 59 |
], |
| 60 |
[ |
| 61 |
2, |
| 62 |
"Bob", |
| 63 |
568220400.0 |
| 64 |
] |
| 65 |
] |
| 66 |
] |
| 67 |
] |