public class CouchDbSynchViewDesign
extends Object
FIXME design CouchDb
http://docs.couchdb.org/en/2.0.0/api/ddoc/common.html
PUT /{db}/_design/{ddoc}
The PUT method creates a new named design document, or creates a new revision of the existing design document.
The design documents have some agreement upon their fields and structure. Currently it is the following:
language (string): Defines Query Server key to process design document functions
options (object): View’s default options
filters (object): Filter functions definition
lists (object): List functions definition
rewrites (array or string): Rewrite rules definition
shows (object): Show functions definition
updates (object): Update functions definition
validate_doc_update (string): Validate document update function source
views (object): View functions definition.
Note, that for filters, lists, shows and updates fields objects are mapping of function name to string function source code.
For views mapping is the same except that values are objects with map and reduce (optional) keys which also contains
functions source code.
- Since:
- 0.6.0
- Author:
- Alisson Gomes