| 1 |
Execution example:: |
| 2 |
|
| 3 |
table_create --name Video --flags TABLE_HASH_KEY --key_type UInt32 |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
table_create --name Tag --flags TABLE_HASH_KEY --key_type ShortText |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
column_create --table Video --name title --flags COLUMN_SCALAR --type ShortText |
| 8 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 9 |
column_create --table Video --name tags --flags COLUMN_VECTOR --type Tag |
| 10 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 11 |
column_create --table Tag --name index_tags --flags COLUMN_INDEX --type Video --source tags |
| 12 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 13 |
load --table Video |
| 14 |
[ |
| 15 |
{"_key":1,"title":"Soccer 2010","tags":["Sports","Soccer"]}, |
| 16 |
{"_key":2,"title":"Zenigata Kinjirou","tags":["Variety","Money"]}, |
| 17 |
{"_key":3,"title":"groonga Demo","tags":["IT","Server","groonga"]}, |
| 18 |
{"_key":4,"title":"Moero!! Ultra Baseball","tags":["Sports","Baseball"]}, |
| 19 |
{"_key":5,"title":"Hex Gone!","tags":["Variety","Quiz"]}, |
| 20 |
{"_key":6,"title":"Pikonyan 1","tags":["Animation","Pikonyan"]}, |
| 21 |
{"_key":7,"title":"Draw 8 Month","tags":["Animation","Raccoon"]}, |
| 22 |
{"_key":8,"title":"K.O.","tags":["Animation","Music"]} |
| 23 |
] |
| 24 |
# [[0,1337566253.89858,0.000355720520019531],8] |