Skip to content

Instantly share code, notes, and snippets.

@naoa
Created November 5, 2015 08:11
Show Gist options
  • Save naoa/6bd6c19244b37ced2ce9 to your computer and use it in GitHub Desktop.
Save naoa/6bd6c19244b37ced2ce9 to your computer and use it in GitHub Desktop.
table_create Tags TABLE_PAT_KEY ShortText
[[0,0.0,0.0],true]
table_create Memos TABLE_HASH_KEY ShortText
[[0,0.0,0.0],true]
column_create Memos tags COLUMN_VECTOR Tags
[[0,0.0,0.0],true]
load --table Memos
[
{"_key": "Rroonga", "tags": ["Groonga", "Ruby"]},
{"_key": "Groonga", "tags": ["Groonga"]},
{"_key": "Blank", "tags": [""]},
{"_key": "Nothing"}
]
[[0,0.0,0.0],4]
select Memos --output_columns 'tags'
[
[
0,
0.0,
0.0
],
[
[
[
4
],
[
[
"tags",
"Tags"
]
],
[
[
"Groonga",
"Ruby"
]
],
[
[
"Groonga"
]
],
[
[
"G"
]
],
[
[
]
]
]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment