| 1 |
Execution example:: |
| 2 |
|
| 3 |
table_create --name SiteDomain --flags TABLE_HASH_KEY --key_type ShortText |
| 4 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 5 |
table_create --name SiteCountry --flags TABLE_HASH_KEY --key_type ShortText |
| 6 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 7 |
column_create --table Site --name domain --flags COLUMN_SCALAR --type SiteDomain |
| 8 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 9 |
column_create --table Site --name country --flags COLUMN_SCALAR --type SiteCountry |
| 10 |
# [[0,1337566253.89858,0.000355720520019531],true] |
| 11 |
load --table Site |
| 12 |
[ |
| 13 |
{"_key":"http://example.org/","domain":".org","country":"japan"}, |
| 14 |
{"_key":"http://example.net/","domain":".net","country":"brazil"}, |
| 15 |
{"_key":"http://example.com/","domain":".com","country":"japan"}, |
| 16 |
{"_key":"http://example.net/afr","domain":".net","country":"usa"}, |
| 17 |
{"_key":"http://example.org/aba","domain":".org","country":"korea"}, |
| 18 |
{"_key":"http://example.com/rab","domain":".com","country":"china"}, |
| 19 |
{"_key":"http://example.net/atv","domain":".net","country":"china"}, |
| 20 |
{"_key":"http://example.org/gat","domain":".org","country":"usa"}, |
| 21 |
{"_key":"http://example.com/vdw","domain":".com","country":"japan"} |
| 22 |
] |
| 23 |
# [[0,1337566253.89858,0.000355720520019531],9] |