This repository was archived by the owner on Aug 2, 2022. It is now read-only.
Repository navigation
[docs] Update cleos get kv_table reference - #9618
Merged
Merged
Conversation
added 4 commits
October 29, 2020 15:12
kimjh2005
reviewed
Oct 29, 2020
|
|
||
| Range query to return all rows (in reverse order) starting from eosio name key `bobg` (exclusive) from kv_table named `kvtable` owned by `contr_acct` account using kv_table index `primarykey`: | ||
| ```sh | ||
| cleos get kv_table --encode-type name -L bobg contr_acct kvtable primarykey -b -r |
Contributor
Author
There was a problem hiding this comment.
Is it really required if -r is specified? I wanted to highlight an example where -U is not specified, in which case the reverse iterator will start from the last row. Is this correct? I should correct the description to read "start from the last row until eosio name key `bobg` (exclusive)", though.
kimjh2005
reviewed
Oct 29, 2020
|
|
||
| Range query to return all rows until eosio name key `bobe` (exclusive) from kv_table named `kvtable` owned by `contr_acct` account using kv_table index `primarykey`: | ||
| ```sh | ||
| cleos get kv_table --encode-type name -U bobe contr_acct kvtable primarykey -b |
Contributor
Author
There was a problem hiding this comment.
Same as above, but an example where -L is not specified. Does the forward iterator start from the first row if -L is not specified?
kimjh2005
reviewed
Oct 29, 2020
| } | ||
| ``` | ||
|
|
||
| Range query to return all rows (in reverse order) until eosio name key `bobe` (inclusive) from kv_table named `kvtable` owned by `contr_acct` account using kv_table index `primarykey`: |
Contributor
There was a problem hiding this comment.
from eosio name key 'bobe' (inclusive)
Contributor
Author
There was a problem hiding this comment.
Will correct this and other instances where applicable.
kimjh2005
reviewed
Oct 29, 2020
| } | ||
| ``` | ||
|
|
||
| Range query to return all rows (in reverse order, limit results to 2 rows) until eosio name key `bobe` (inclusive) from kv_table named `kvtable` owned by `contr_acct` account using kv_table index `primarykey`: |
Contributor
There was a problem hiding this comment.
'from' instead of 'until'
This file contains hidden or 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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Change Description
Resolves DEVREL-947
Change Type
Select ONE
Consensus Changes
API Changes
Documentation Additions