Get all views of a single database

I’m using couchbase lite 1.4.1 and I was wondering is their any way to return all the Views inside a single database? Their is a function getView(viewName) but nothing to get all the Views.

I would like to implement a “refresh all indexes” utility button (not available for end users), that’s why a getAllViews should be appropriated in my case.


Hm, no, I don’t think there’s an API for that. Usually the set of views an app creates is static, so you already know at compile time what your views are. If your app generates views dynamically, you could create a [local] document containing a list of all the view names, and update it when you create/delete a view.