例如我们创建了这个 View :
http://cdb.linkaform.com/client_126_catalog_records/_design/paises/_view/paises-key
我们如何在 Android 上使用这个 View ?我们正在使用 CouchBase 和 Cloudant 库。
最佳答案
至少在 Cloudant Sync 中不支持使用远程 View 。
这两个库中的方法都是使用 native 复制机制将文档复制到本地存储中。复制信息后,您应该使用每个图书馆提供的数据选择机制。
Cloudant Sync 提供类似于 Mango 的查询语法,允许检索您需要的文档。 [ https://github.com/cloudant/sync-android/blob/master/doc/query.md]
Couchbase Mobile 2.0,包括类似的查询机制[ https://developer.couchbase.com/documentation/mobile/2.0/guides/couchbase-lite/native-api/query/index.html] ,以前的版本支持为此目的定义本地 View 。
关于android - 如何离线使用 Android 上的 CouchDB View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47105953/