A node-red couchdb node
Accessor nodes for Apache CouchDB from Node-RED.
npm install node-red-contrib-couchdb to install.
This package provides some nodes that can be used in conjunction with an Apache CouchDB. Specifically,
we can insert new documents and query/retrieve existing documents. For the insertion, we supply the
msg.payload property which could include the
_id property to
provide the identity. If we are updating the document, then a valid
_rev property should also be present.
For a query/retrieval, we have the choice of either retrieving by id value or by a design document view search.
For an id, specify the
_id value as the
msg.payload. For a design document view retrieval, supply
the search key in
In both cases, the document is returned as the output
To connect to the database, the URL for the CouchDB server should be supplied along with the database name for the database to be accessed.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
- 2015-03-04 - First release