Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
table get: add "[table][get] " prefix to error messages
- Loading branch information
Showing
5 changed files
with
47 additions
and
10 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
File renamed without changes.
File renamed without changes.
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,25 @@ | ||
| register table/table | ||
| [[0,0.0,0.0],true] | ||
| table_create Diaries TABLE_PAT_KEY ShortText | ||
| [[0,0.0,0.0],true] | ||
| column_create Diaries title COLUMN_SCALAR ShortText | ||
| [[0,0.0,0.0],true] | ||
| column_create Diaries tags COLUMN_VECTOR ShortText | ||
| [[0,0.0,0.0],true] | ||
| load --table Diaries | ||
| [ | ||
| {"_key":"2012-08-14", "title": "'get' command is moved!", "tags": ["groonga", "development"]}, | ||
| ] | ||
| [[0,0.0,0.0],1] | ||
| get Diaries 'nonexistent' | ||
| [ | ||
| [ | ||
| [ | ||
| -22, | ||
| 0.0, | ||
| 0.0 | ||
| ], | ||
| "[table][get] nonexistent key: <nonexistent>: table: <Diaries>" | ||
| ] | ||
| ] | ||
| #|e| [table][get] nonexistent key: <nonexistent>: table: <Diaries> |
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,10 @@ | ||
| register table/table | ||
| table_create Diaries TABLE_PAT_KEY ShortText | ||
| column_create Diaries title COLUMN_SCALAR ShortText | ||
| column_create Diaries tags COLUMN_VECTOR ShortText | ||
|
|
||
| load --table Diaries | ||
| [ | ||
| {"_key":"2012-08-14", "title": "'get' command is moved!", "tags": ["groonga", "development"]}, | ||
| ] | ||
| get Diaries 'nonexistent' |