Search code examples
node.jscouchdbcouchdb-nano

How to check if a database exists with CouchDB Nano


I need to check if a given database exists before querying it. I've looked at this question, but I cannot replicate on Node.js using CouchDB Nano.

Does anyone know how to check it using the Nano library?


Solution

  • I just find out there is an API to list al the databases from a given CouchDB server: https://github.com/apache/couchdb-nano#nanodblistcallback

    My bad.