| 1 |
table_create Purchases TABLE_NO_KEY |
| 2 |
column_create Purchases item COLUMN_SCALAR ShortText |
| 3 |
column_create Purchases price COLUMN_SCALAR UInt32 |
| 4 |
|
| 5 |
table_create Settlements TABLE_HASH_KEY ShortText |
| 6 |
column_create Settlements purchases COLUMN_VECTOR Purchases |
| 7 |
|
| 8 |
column_create Purchases settlements_purchases COLUMN_INDEX Settlements purchases |
| 9 |
|
| 10 |
load --table Purchases |
| 11 |
[ |
| 12 |
{"item": "apple", |
| 13 |
"price": 100}, |
| 14 |
{"item": "milk", |
| 15 |
"price": 200}, |
| 16 |
{"item": "sneakers", |
| 17 |
"price": 3000} |
| 18 |
] |
| 19 |
|
| 20 |
load --table Settlements |
| 21 |
[ |
| 22 |
{ |
| 23 |
"_key": "super market", |
| 24 |
"purchases": "[1, 2]" |
| 25 |
}, |
| 26 |
{ |
| 27 |
"_key": "shoes shop", |
| 28 |
"purchases": "[3]" |
| 29 |
} |
| 30 |
] |
| 31 |
|
| 32 |
dump \ |
| 33 |
--dump_plugins no \ |
| 34 |
--dump_schema no |