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
3 changed files
with
152 additions
and
1 deletion.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| register commands/hook | ||
| [[0,0.0,0.0],true] | ||
| table_create Entries TABLE_HASH_KEY ShortText | ||
| [[0,0.0,0.0],true] | ||
| column_create Entries title COLUMN_SCALAR ShortText | ||
| [[0,0.0,0.0],true] | ||
| table_create Tokens TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
| [[0,0.0,0.0],true] | ||
| column_create Tokens entries_title COLUMN_INDEX|WITH_POSITION Entries title | ||
| [[0,0.0,0.0],true] | ||
| example_hook_add_value --table Entries --column title --value "hogehoge" | ||
| [[0,0.0,0.0],[1]] | ||
| example_hook_get_value --table Entries --column title | ||
| [[0,0.0,0.0],["hogehoge"]] | ||
| example_hook_delete_value --table Entries --column title | ||
| [[0,0.0,0.0],[0]] |
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,12 @@ | ||
| register commands/hook | ||
|
|
||
| table_create Entries TABLE_HASH_KEY ShortText | ||
| column_create Entries title COLUMN_SCALAR ShortText | ||
|
|
||
| table_create Tokens TABLE_PAT_KEY ShortText --default_tokenizer TokenBigram | ||
| column_create Tokens entries_title COLUMN_INDEX|WITH_POSITION Entries title | ||
|
|
||
| example_hook_add_value --table Entries --column title --value "hogehoge" | ||
| example_hook_get_value --table Entries --column title | ||
| example_hook_delete_value --table Entries --column title | ||
|
|