| 1 |
table_create Users TABLE_HASH_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
column_create Users age COLUMN_SCALAR UInt8 |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
table_create Ages TABLE_PAT_KEY UInt8 |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create Ages users_age COLUMN_INDEX Users age |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
load --table Users |
| 10 |
[ |
| 11 |
{"_key": "Alice", "age": 20}, |
| 12 |
{"_key": "Bob", "age": 18} |
| 13 |
] |
| 14 |
[[0,0.0,0.0],2] |
| 15 |
select Ages |
| 16 |
[ |
| 17 |
[ |
| 18 |
0, |
| 19 |
0.0, |
| 20 |
0.0 |
| 21 |
], |
| 22 |
[ |
| 23 |
[ |
| 24 |
[ |
| 25 |
2 |
| 26 |
], |
| 27 |
[ |
| 28 |
[ |
| 29 |
"_id", |
| 30 |
"UInt32" |
| 31 |
], |
| 32 |
[ |
| 33 |
"_key", |
| 34 |
"UInt8" |
| 35 |
], |
| 36 |
[ |
| 37 |
"users_age", |
| 38 |
"UInt32" |
| 39 |
] |
| 40 |
], |
| 41 |
[ |
| 42 |
2, |
| 43 |
18, |
| 44 |
1 |
| 45 |
], |
| 46 |
[ |
| 47 |
1, |
| 48 |
20, |
| 49 |
1 |
| 50 |
] |
| 51 |
] |
| 52 |
] |
| 53 |
] |
| 54 |
select Users --filter 'age == 20' |
| 55 |
[ |
| 56 |
[ |
| 57 |
0, |
| 58 |
0.0, |
| 59 |
0.0 |
| 60 |
], |
| 61 |
[ |
| 62 |
[ |
| 63 |
[ |
| 64 |
1 |
| 65 |
], |
| 66 |
[ |
| 67 |
[ |
| 68 |
"_id", |
| 69 |
"UInt32" |
| 70 |
], |
| 71 |
[ |
| 72 |
"_key", |
| 73 |
"ShortText" |
| 74 |
], |
| 75 |
[ |
| 76 |
"age", |
| 77 |
"UInt8" |
| 78 |
] |
| 79 |
], |
| 80 |
[ |
| 81 |
1, |
| 82 |
"Alice", |
| 83 |
20 |
| 84 |
] |
| 85 |
] |
| 86 |
] |
| 87 |
] |
| 88 |
select Users --filter 'age == 0' |
| 89 |
[[0,0.0,0.0],[[[0],[["_id","UInt32"],["_key","ShortText"],["age","UInt8"]]]]] |
| 90 |
delete Users --filter 'age == 20' |
| 91 |
[[0,0.0,0.0],true] |
| 92 |
select Ages |
| 93 |
[ |
| 94 |
[ |
| 95 |
0, |
| 96 |
0.0, |
| 97 |
0.0 |
| 98 |
], |
| 99 |
[ |
| 100 |
[ |
| 101 |
[ |
| 102 |
2 |
| 103 |
], |
| 104 |
[ |
| 105 |
[ |
| 106 |
"_id", |
| 107 |
"UInt32" |
| 108 |
], |
| 109 |
[ |
| 110 |
"_key", |
| 111 |
"UInt8" |
| 112 |
], |
| 113 |
[ |
| 114 |
"users_age", |
| 115 |
"UInt32" |
| 116 |
] |
| 117 |
], |
| 118 |
[ |
| 119 |
2, |
| 120 |
18, |
| 121 |
1 |
| 122 |
], |
| 123 |
[ |
| 124 |
1, |
| 125 |
20, |
| 126 |
0 |
| 127 |
] |
| 128 |
] |
| 129 |
] |
| 130 |
] |
| 131 |
select Users --filter 'age == 20' |
| 132 |
[[0,0.0,0.0],[[[0],[["_id","UInt32"],["_key","ShortText"],["age","UInt8"]]]]] |
| 133 |
select Users --filter 'age == 0' |
| 134 |
[[0,0.0,0.0],[[[0],[["_id","UInt32"],["_key","ShortText"],["age","UInt8"]]]]] |