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

couchdb: Add multipart support to BulkGet endpoint #652

Open
flimzy opened this issue Aug 28, 2023 · 0 comments
Open

couchdb: Add multipart support to BulkGet endpoint #652

flimzy opened this issue Aug 28, 2023 · 0 comments

Comments

@flimzy
Copy link
Member

flimzy commented Aug 28, 2023

In CouchDB 2.3, /_bulk_get has multipart/mixed support, to download attachments. Adding support for this could be nice.

Some possible implementation details:

To trigger this mode, perhaps the CouchDB driver could interpret kivik.Options{"attachments": true} to trigger this behavior. This retains near semantic parity with other functions, since the application/json response only contains attachment stubs.

Then to access these attachments, perhaps the Rows interface could be given an Attachments() *Attachments method, to match the Attachments field on the Row type.


Migrated from go-kivik/couchdb#141

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant