| 1 |
table_create Users TABLE_HASH_KEY ShortText |
| 2 |
[[0,0.0,0.0],true] |
| 3 |
table_create URLs TABLE_HASH_KEY ShortText |
| 4 |
[[0,0.0,0.0],true] |
| 5 |
column_create Users bookmarks COLUMN_VECTOR URLs |
| 6 |
[[0,0.0,0.0],true] |
| 7 |
column_create URLs author COLUMN_SCALAR Users |
| 8 |
[[0,0.0,0.0],true] |
| 9 |
column_create URLs bookmarks_index COLUMN_INDEX Users bookmarks |
| 10 |
[[0,0.0,0.0],true] |
| 11 |
load --table Users |
| 12 |
[ |
| 13 |
{ |
| 14 |
"_key": "mori", |
| 15 |
"bookmarks": [ |
| 16 |
"http://mroonga.org/", |
| 17 |
"https://pgroonga.github.io", |
| 18 |
"http://groonga.org/", |
| 19 |
"http://ranguba.org/" |
| 20 |
] |
| 21 |
} |
| 22 |
] |
| 23 |
[[0,0.0,0.0],1] |
| 24 |
load --table URLs |
| 25 |
[ |
| 26 |
{"_key": "http://groonga.org/", "author": "mori"} |
| 27 |
] |
| 28 |
[[0,0.0,0.0],1] |
| 29 |
delete URLs --key "http://groonga.org/" |
| 30 |
[[0,0.0,0.0],true] |
| 31 |
dump |
| 32 |
table_create URLs TABLE_HASH_KEY ShortText |
| 33 |
|
| 34 |
table_create Users TABLE_HASH_KEY ShortText |
| 35 |
|
| 36 |
column_create URLs author COLUMN_SCALAR Users |
| 37 |
column_create Users bookmarks COLUMN_VECTOR URLs |
| 38 |
|
| 39 |
load --table URLs |
| 40 |
[ |
| 41 |
["_key"], |
| 42 |
["http://mroonga.org/"], |
| 43 |
["https://pgroonga.github.io"], |
| 44 |
["http://ranguba.org/"] |
| 45 |
] |
| 46 |
|
| 47 |
load --table Users |
| 48 |
[ |
| 49 |
["_key"], |
| 50 |
["mori"] |
| 51 |
] |
| 52 |
|
| 53 |
load --table URLs |
| 54 |
[ |
| 55 |
["_key","author"], |
| 56 |
["http://mroonga.org/",""], |
| 57 |
["https://pgroonga.github.io",""], |
| 58 |
["http://ranguba.org/",""] |
| 59 |
] |
| 60 |
|
| 61 |
load --table Users |
| 62 |
[ |
| 63 |
["_key","bookmarks"], |
| 64 |
["mori",["http://mroonga.org/","https://pgroonga.github.io","http://ranguba.org/"]] |
| 65 |
] |
| 66 |
|
| 67 |
column_create URLs bookmarks_index COLUMN_INDEX Users bookmarks |