Search code examples
databasefunctionviewcouchdb

list all database in CouchDb view,validation functions


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.


Solution

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