Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

range queries with pagination #420

Merged
merged 1 commit into from
Jun 21, 2022
Merged

Conversation

cendhu
Copy link
Contributor

@cendhu cendhu commented Jun 8, 2022

This commit adds range query on a given database.
GET database?startkey=k1&endkey=k2&limit=10 would be used
by the client to range over a set of keys. If the
query record limit is reached, the response would
include the next start key.

Signed-off-by: senthil cendhu@gmail.com

@cendhu cendhu force-pushed the range-queries branch 3 times, most recently from 07f8894 to 2d8fe33 Compare June 13, 2022 08:54
config/config.go Outdated Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
internal/bcdb/db.go Outdated Show resolved Hide resolved
internal/bcdb/worldstate_query_processor.go Outdated Show resolved Hide resolved
internal/httphandler/utils.go Outdated Show resolved Hide resolved
protos/query.proto Outdated Show resolved Hide resolved
internal/httphandler/data_request_handler.go Show resolved Hide resolved
@cendhu cendhu force-pushed the range-queries branch 2 times, most recently from 0d2419b to 997bbdf Compare June 21, 2022 07:52
config/config.go Outdated Show resolved Hide resolved
config/config.go Outdated Show resolved Hide resolved
config/config_test.go Outdated Show resolved Hide resolved
config/testdata/config.yml Outdated Show resolved Hide resolved
internal/bcdb/db.go Outdated Show resolved Hide resolved
internal/httphandler/utils.go Outdated Show resolved Hide resolved
protos/query.proto Outdated Show resolved Hide resolved
internal/httphandler/data_request_handler.go Show resolved Hide resolved
internal/httphandler/utils.go Show resolved Hide resolved
@cendhu cendhu force-pushed the range-queries branch 2 times, most recently from e03632d to c713861 Compare June 21, 2022 11:10
This commit adds range query on a given database.
`GET database?startkey=k1&endkey=k2` would be used
by the client to range over a set of keys. If the
query record limit is reached, the response would
include the next start key.

Signed-off-by: senthil <cendhu@gmail.com>
@tock-ibm tock-ibm merged commit 6a9aeaf into hyperledger-labs:main Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants