Is it possible to store view code in files?

时间:2015-11-12 11:03:06

标签: couchbase couchbase-view

Right now I enter view code (map & reduce) in the couchbase UI. This is very inconvenient, and I was wondering if there is a way to make couchbase scan the code from a folder?

This will allow me to put this code under version control, and allow me to create a script that copies code between environments.

1 个答案:

答案 0 :(得分:0)

我不知道在文件中存储视图的“本机”方式,但您可以通过REST添加和删除视图。所以你可以实施一个解决方法。

Views REST API