Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
499 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
50 changes: 50 additions & 0 deletions
50
doc/source/example/reference/functions/in_records/usage_search.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| Execution example:: | ||
|
|
||
| plugin_register functions/string | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| select \ | ||
| --table Memos \ | ||
| --filter 'in_records(Conditions, \ | ||
| user, "@", "user_pattern", \ | ||
| tag, "==", "tag", \ | ||
| string_length(_key), "<=", "max_length")' \ | ||
| --sort_by _id \ | ||
| --output_columns _key,user,tag | ||
| # [ | ||
| # [ | ||
| # 0, | ||
| # 1337566253.89858, | ||
| # 0.000355720520019531 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # [ | ||
| # 2 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # "_key", | ||
| # "ShortText" | ||
| # ], | ||
| # [ | ||
| # "user", | ||
| # "ShortText" | ||
| # ], | ||
| # [ | ||
| # "tag", | ||
| # "Tags" | ||
| # ] | ||
| # ], | ||
| # [ | ||
| # "Groonga is fast", | ||
| # "alice", | ||
| # "groonga" | ||
| # ], | ||
| # [ | ||
| # "Droonga is fast", | ||
| # "david", | ||
| # "droonga" | ||
| # ] | ||
| # ] | ||
| # ] | ||
| # ] |
8 changes: 8 additions & 0 deletions
8
doc/source/example/reference/functions/in_records/usage_setup_conditions.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| Execution example:: | ||
|
|
||
| load --table Conditions | ||
| [ | ||
| {"_key": "lic + groonga", "user_pattern": "lic", "tag": "groonga", max_length: 20}, | ||
| {"_key": "dav + droonga", "user_pattern": "dav", "tag": "droonga", max_length: 50} | ||
| ] | ||
| # [[0, 1337566253.89858, 0.000355720520019531], 2] |
11 changes: 11 additions & 0 deletions
11
doc/source/example/reference/functions/in_records/usage_setup_data.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| Execution example:: | ||
|
|
||
| load --table Memos | ||
| [ | ||
| {"_key": "Groonga is fast", "user": "alice", "tag": "groonga"}, | ||
| {"_key": "Mroonga is fast", "user": "alice", "tag": "mroonga"}, | ||
| {"_key": "Groonga is very good!", "user": "alice", "tag": "groonga"}, | ||
| {"_key": "Droonga is fast", "user": "david", "tag": "droonga"}, | ||
| {"_key": "Groonga is a HTTP server", "user": "david", "tag": "groonga"} | ||
| ] | ||
| # [[0, 1337566253.89858, 0.000355720520019531], 5] |
18 changes: 18 additions & 0 deletions
18
doc/source/example/reference/functions/in_records/usage_setup_schema.log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| Execution example:: | ||
|
|
||
| table_create Tags TABLE_PAT_KEY ShortText | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| table_create Conditions TABLE_PAT_KEY ShortText | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| column_create Conditions user_pattern COLUMN_SCALAR ShortText | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| column_create Conditions tag COLUMN_SCALAR Tags | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| column_create Conditions max_length COLUMN_SCALAR UInt32 | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| table_create Memos TABLE_HASH_KEY ShortText | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| column_create Memos user COLUMN_SCALAR ShortText | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| column_create Memos tag COLUMN_SCALAR Tags | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] |
Oops, something went wrong.