I need a get a list of all databases in a Couchdb server inside a view/validation function.
Is there CouchDb predefiend function that i can use it inside function (like emit)?
I know i can do http request to get this , something like :
"http://server/_all_dbs"
but it is realy messy.
Thanks oren.
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:[email protected]:5984/_all_dbs
No, within a view all you have visibility of is the document that you're processing.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With