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

API missing primary index (_all_docs) and range over indexes #7

Open
jblachly opened this issue Jun 20, 2016 · 3 comments
Open

API missing primary index (_all_docs) and range over indexes #7

jblachly opened this issue Jun 20, 2016 · 3 comments

Comments

@jblachly
Copy link

Thanks for this package, it looks fantastic.

One thing that's missing from the API appears to be a way to access the primary index at db/_all_docs/. I note that the function ReadMultiple calls this endpoint, but always in the context of retrieval of arbitrary list of document _ids. It would be nice if I could retrieve all documents (without creating a view).

Further, I have given my documents ids that have meaningful sort order and would like to range over them as I do in the couchdb REST interface with startkey and endkey. Even if I created a view as I might for the solution to the paragraph above, I still can't retrieve subsets of views with the couchdb-go API.

Thank you for considering.

@rhinoman
Copy link
Owner

This doesn't look like it would be very difficult to implement. However, it might be some time before I get to it, I'm neck deep in some other projects at the moment. Though, I'm always open to pull requests...

@jblachly
Copy link
Author

I am a golang novice but will give it a try if you are willing to provide constructive feedback to the pull request

@rhinoman
Copy link
Owner

Of course, no problem.

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

No branches or pull requests

2 participants