You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use pouchdb-server as an in memory database that will replicate to CouchDB. I've made my own Java library to interface with CouchDB over HTTP and it works fine with PouchDB for the most part.
The problem I've come across is that I have no idea what ETag value I'm getting back. For one of my design documents the value is W/"b3-h4qJypewViZK81RbDjSOy/qowQE" after making a GET or HEAD to the document. I'm trying to understand how that relates to the revision of the document, as the revision is what I'm most familiar with working with.
I'm just trying to understand how the ETag value is supposed to be used in place of using the revision as the ETag value. Any documentation or links to relevant code would be appreciated. PouchDB is pretty similar to CouchDB, but when something weird like this pops up it's hard to find any good documentation.
When I'm in CouchDB world, I normally will make a HEAD request to get the revision of the document and use that revision to overwrite an existing document if I wanted to. Now with PouchDB I'm unsure of the best way to go about that.
It also looks to me that this functionality existed at one point, but there's not much context around this discussion: pouchdb/express-pouchdb#101
The text was updated successfully, but these errors were encountered:
Hello.
I'm trying to use pouchdb-server as an in memory database that will replicate to CouchDB. I've made my own Java library to interface with CouchDB over HTTP and it works fine with PouchDB for the most part.
The problem I've come across is that I have no idea what
ETag
value I'm getting back. For one of my design documents the value isW/"b3-h4qJypewViZK81RbDjSOy/qowQE"
after making a GET or HEAD to the document. I'm trying to understand how that relates to the revision of the document, as the revision is what I'm most familiar with working with.I'm just trying to understand how the ETag value is supposed to be used in place of using the revision as the ETag value. Any documentation or links to relevant code would be appreciated. PouchDB is pretty similar to CouchDB, but when something weird like this pops up it's hard to find any good documentation.
When I'm in CouchDB world, I normally will make a HEAD request to get the revision of the document and use that revision to overwrite an existing document if I wanted to. Now with PouchDB I'm unsure of the best way to go about that.
It also looks to me that this functionality existed at one point, but there's not much context around this discussion: pouchdb/express-pouchdb#101
The text was updated successfully, but these errors were encountered: