jmunoa7
jmunoa7

Reputation: 185

PouchDB get list of all databases with Typescript

I want to get the list of all databases of my local server of CouchDB. Using CouchDB API I can list the databases, but using PouchDB I don't find anywhere how to do it.

Upvotes: 1

Views: 1658

Answers (1)

Jonathan Hall
Jonathan Hall

Reputation: 79744

PouchDB does not support that natively, due to limitations in local storage--it doesn't allow a listing of existing content. If you use the pouchdb-all-dbs plugin, it will emulate the functionality for you, by watching all databases as they are created or deleted. But you must use this plugin at all times, to expect an accurate list.

Upvotes: 4

Related Questions