| 1 |
Execution example:: |
| 2 |
|
| 3 |
table_create --name User --flags TABLE_HASH_KEY --key_type ShortText |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
column_create --table User --name username --flags COLUMN_SCALAR --type ShortText |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
column_create --table User --name friends --flags COLUMN_VECTOR --type User |
| 8 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 9 |
column_create --table User --name index_friends --flags COLUMN_INDEX --type User --source friends |
| 10 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 11 |
load --table User |
| 12 |
[ |
| 13 |
{"_key":"ken","username":"健作","friends":["taro","jiro","tomo","moritapo"]} |
| 14 |
{"_key":"moritapo","username":"森田","friends":["ken","tomo"]} |
| 15 |
{"_key":"taro","username":"ぐるんが太郎","friends":["jiro","tomo"]} |
| 16 |
{"_key":"jiro","username":"ぐるんが次郎","friends":["taro","tomo"]} |
| 17 |
{"_key":"tomo","username":"トモちゃん","friends":["ken","hana"]} |
| 18 |
{"_key":"hana","username":"花子","friends":["ken","taro","jiro","moritapo","tomo"]} |
| 19 |
] |
| 20 |
# [[0,1337566253.89858,0.000355720520019531],6] |