list all database in CouchDb view,validation functions list all database in CouchDb view,validation functions database database

list all database in CouchDb view,validation functions


You have 2 way to list all databases in the CouchDB server

Without Password

curl -X GET http://127.0.0.1:5984/_all_dbs

With Password

curl -X GET http://USER:PASSWORD@127.0.0.1:5984/_all_dbs


No, within a view all you have visibility of is the document that you're processing.


I know i can do http request to get this , something like :

"http://server/_all_dbs"

but it is realy messy.

You can use jq to make this less messy:

ccurl /all_dbs | jq

(The above uses ccurl to make life easier.)