Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
doc: add more descriptions about --query_flags
- Loading branch information
Showing
5 changed files
with
288 additions
and
3 deletions.
There are no files selected for viewing
41 changes: 41 additions & 0 deletions
41
doc/source/example/reference/commands/select/query_flags_allow_column.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,41 @@ | ||
| Execution example:: | ||
|
|
||
| select Entries --query content:@mroonga --query_flags ALLOW_COLUMN | ||
| # [ | ||
| # [ | ||
| # 0, | ||
| # 1337566253.89858, | ||
| # 0.000355720520019531 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # [ | ||
| # 1 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # "_id", | ||
| # "UInt32" | ||
| # ], | ||
| # [ | ||
| # "_key", | ||
| # "ShortText" | ||
| # ], | ||
| # [ | ||
| # "content", | ||
| # "Text" | ||
| # ], | ||
| # [ | ||
| # "n_likes", | ||
| # "UInt32" | ||
| # ] | ||
| # ], | ||
| # [ | ||
| # 3, | ||
| # "Mroonga", | ||
| # "I also started to use mroonga. It's also very fast! Really fast!", | ||
| # 15 | ||
| # ] | ||
| # ] | ||
| # ] | ||
| # ] |
59 changes: 59 additions & 0 deletions
59
doc/source/example/reference/commands/select/query_flags_allow_leading_not.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,59 @@ | ||
| Execution example:: | ||
|
|
||
| select Entries --match_columns content --query -mroonga --query_flags ALLOW_LEADING_NOT | ||
| # [ | ||
| # [ | ||
| # 0, | ||
| # 1337566253.89858, | ||
| # 0.000355720520019531 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # [ | ||
| # 4 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # "_id", | ||
| # "UInt32" | ||
| # ], | ||
| # [ | ||
| # "_key", | ||
| # "ShortText" | ||
| # ], | ||
| # [ | ||
| # "content", | ||
| # "Text" | ||
| # ], | ||
| # [ | ||
| # "n_likes", | ||
| # "UInt32" | ||
| # ] | ||
| # ], | ||
| # [ | ||
| # 1, | ||
| # "The first post!", | ||
| # "Welcome! This is my first post!", | ||
| # 5 | ||
| # ], | ||
| # [ | ||
| # 2, | ||
| # "Groonga", | ||
| # "I started to use groonga. It's very fast!", | ||
| # 10 | ||
| # ], | ||
| # [ | ||
| # 4, | ||
| # "Good-bye Senna", | ||
| # "I migrated all Senna system!", | ||
| # 3 | ||
| # ], | ||
| # [ | ||
| # 5, | ||
| # "Good-bye Tritonn", | ||
| # "I also migrated all Tritonn system!", | ||
| # 3 | ||
| # ] | ||
| # ] | ||
| # ] | ||
| # ] |
90 changes: 90 additions & 0 deletions
90
doc/source/example/reference/commands/select/query_flags_allow_update.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,90 @@ | ||
| Execution example:: | ||
|
|
||
| table_create Users TABLE_HASH_KEY ShortText | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| column_create Users age COLUMN_SCALAR UInt32 | ||
| # [[0, 1337566253.89858, 0.000355720520019531], true] | ||
| load --table Users | ||
| [ | ||
| {"_key": "alice", "age": 18}, | ||
| {"_key": "bob", "age": 20} | ||
| ] | ||
| # [[0, 1337566253.89858, 0.000355720520019531], 2] | ||
| select Users --query age:=19 --query_flags ALLOW_COLUMN|ALLOW_UPDATE | ||
| # [ | ||
| # [ | ||
| # 0, | ||
| # 1337566253.89858, | ||
| # 0.000355720520019531 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # [ | ||
| # 2 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # "_id", | ||
| # "UInt32" | ||
| # ], | ||
| # [ | ||
| # "_key", | ||
| # "ShortText" | ||
| # ], | ||
| # [ | ||
| # "age", | ||
| # "UInt32" | ||
| # ] | ||
| # ], | ||
| # [ | ||
| # 1, | ||
| # "alice", | ||
| # 19 | ||
| # ], | ||
| # [ | ||
| # 2, | ||
| # "bob", | ||
| # 19 | ||
| # ] | ||
| # ] | ||
| # ] | ||
| # ] | ||
| select Users | ||
| # [ | ||
| # [ | ||
| # 0, | ||
| # 1337566253.89858, | ||
| # 0.000355720520019531 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # [ | ||
| # 2 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # "_id", | ||
| # "UInt32" | ||
| # ], | ||
| # [ | ||
| # "_key", | ||
| # "ShortText" | ||
| # ], | ||
| # [ | ||
| # "age", | ||
| # "UInt32" | ||
| # ] | ||
| # ], | ||
| # [ | ||
| # 1, | ||
| # "alice", | ||
| # 19 | ||
| # ], | ||
| # [ | ||
| # 2, | ||
| # "bob", | ||
| # 19 | ||
| # ] | ||
| # ] | ||
| # ] | ||
| # ] |
41 changes: 41 additions & 0 deletions
41
doc/source/example/reference/commands/select/query_flags_none.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,41 @@ | ||
| Execution example:: | ||
|
|
||
| select Entries --match_columns content --query 'mroonga OR _key:Groonga' --query_flags NONE | ||
| # [ | ||
| # [ | ||
| # 0, | ||
| # 1337566253.89858, | ||
| # 0.000355720520019531 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # [ | ||
| # 1 | ||
| # ], | ||
| # [ | ||
| # [ | ||
| # "_id", | ||
| # "UInt32" | ||
| # ], | ||
| # [ | ||
| # "_key", | ||
| # "ShortText" | ||
| # ], | ||
| # [ | ||
| # "content", | ||
| # "Text" | ||
| # ], | ||
| # [ | ||
| # "n_likes", | ||
| # "UInt32" | ||
| # ] | ||
| # ], | ||
| # [ | ||
| # 3, | ||
| # "Mroonga", | ||
| # "I also started to use mroonga. It's also very fast! Really fast!", | ||
| # 15 | ||
| # ] | ||
| # ] | ||
| # ] | ||
| # ] |
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