couchdb-query-helper
A module to help query couch DB in node applications
couchdb-query-helper is a library that can help you build query, schema, and control your database more easier.
Presently can only be used on the NodeJS version 8 or higher.Supports CouchDb version 15.10 or higher.
Installation
npm i couchdb-query-helper
How to use
Initializing the library
couchdb-query-helper module is itself a function which takes a configuration object.
const queryHelper = ;
Retrieving results
Retrieving All Rows From A Table
queryHelper ;
Retrieving All Databases available
queryHelper ;
Inserting a document
queryHelper ;
Deleting a document
queryHelper ;
Select with condition (In Developement)
array_of_key
represents the key that you are searching for and array_of_values
represents the values that the key should have.
queryHelper ;
Creating a new database
queryHelper ;
Drop a database
queryHelper ;
Run your regular find with custom queries
You can use the regular JSON object for queries, to know more about the select option visit http://docs.couchdb.org/en/stable/api/database/find.html
queryHelper ;