1,530 questions
Advice
1
vote
1
replies
49
views
Backup and Restore with PouchDB
I'm creating an app that stores data in PouchDB.
I have successfully implemented a backup solution using db.allDocs.
I now need to implement a restore process using db.bulkDocs.
To avoid conflicts, ...
1
vote
0
answers
43
views
Token authentication — How to catch 401/403 errors?
Using token as auth method, how would you catch 401 or 403 errors in order to refresh the token?
This is how we use PouchDB:
const remoteDB = (authToken: string) => {
return new PouchDB(...
0
votes
1
answer
45
views
How to extract all attachment Blobs in PouchDB (synchronous/asynchronous issue?)
Note: My problem seems to be more to do with synchronous vs asynchronous JavaScript than with PouchDB.
I have a PouchDB database containing documents that each have one attachment.
The attachments are ...
3
votes
0
answers
67
views
CORS issue when syncing PouchDB with Capella [closed]
When trying to sync / replicate PouchDB from Capella (from frontend/browswer), using App Services, we get a CORS Error:
Acces to fetch ____ has been blocked by CORS policy: Response to preflight ...
0
votes
0
answers
19
views
How to compact only one document in PouchDB?
In PouchDB, when a document is removed with remove(), a new leaf node is created containing no document data except _id, _rev, and _deleted = true. But the old user-data-containing revisions remain ...
0
votes
0
answers
53
views
Unable to use Pouch Db with electron
Node Version: 22
Electron Version: 34.2
PouchDb Version: 9
I create project using this command
yarn create @quick-start/electron my-app
Im trying to use pouch db with electron but Im facing this ...
0
votes
1
answer
94
views
Unable to foward a sync url to pouchdb using nextjs api's
this is my local.ini couchdb file:
[admins]
admin = <REDACTED>
[couchdb]
database_dir = <REDACTED>
view_index_dir = <REDACTED>
uri_file = <REDACTED>
uuid = <REDACTED>
[...
1
vote
1
answer
64
views
Pouch dB, couchbase scope and collection support
Im able to setup the couchbase server and enabled sync gateway for a bucket. However the values docs are added to _default scope and _default collection.
Upon creating a new collection inside _default ...
1
vote
2
answers
380
views
how to store indexes in pouchdb
I am new to pouchdb and I want to create a few indexes for searching on secondary (non _id) fields.
I have seen the Mango & Map/reduce queries from the documentation, but I cannot understand ...
2
votes
0
answers
819
views
How would you implement pouchdb in a flutter app for android?
I need to use pouchdb in my flutter app, for replication with an existing couchdb server.
Since there is no native flutter package for pouchdb (or any couchdb implementation) that supports android, I'...
0
votes
1
answer
76
views
How can I sync PouchDB with CouchDB when pouchdb-authentication doesn't work with the .sync function?
I am able to log into couchDB from my node instance to the remote DB using the pouch-authentication plugin, but I'm not sure how to use the .sync method to replicate because it doesn't use the ...
4
votes
2
answers
1k
views
error pouchdb on vite ReferenceError: global is not defined
When I follow the instructions in the official pouchdb documentation and try to use pouchdb, it gives me an error saying:
ReferenceError: global is not defined
I am using Vite particularly in a Quasar ...
1
vote
0
answers
391
views
Error: Invalid Adapter: asyncstorage, js engine: hermes
I updated my expo version from 47 to 49 and I get this error after execution.
Error: Invalid Adapter: asyncstorage, js engine: hermes
at node_modules\react-native\Libraries\Core\ExceptionsManager.js:...
1
vote
0
answers
67
views
PouchDB allDocs() total_rows differs from number of all docs returned
I'm iterating through all docs in a pouchdb-database. To get all docs, I'm using result = await db.info() with that I read result.doc_count. I'm getting 961 docs. Same 961 docs with db.allDocs() ...
1
vote
1
answer
421
views
In Pouchdb /Couchdb should replication be faster through a filter or a view than using "selector" directly in replication?
I'm doing some tests with PouchDb and CouchDb in order to optimize my Ionic app as much as possible. In databases with a few hundred documents, I have no problem, but in larger databases (starting ...