Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
couchdb-seed-design
Advanced tools
Readme
Seed CouchDB design documents with nano
.
npm install couchdb-seed-design
var nano = require('nano');
var seed = require('couchdb-seed-design');
var db = nano('http://localhost:5984/design');
seed(db, {
person: {
views: {
byFirstName: function (doc) {
emit(doc.firstName);
},
byLastName: function (doc) {
emit(doc.lastName);
},
byFullName: function (doc) {
emit(doc.firstName + ' ' + doc.lastName);
}
}
}
}, function () {
console.dir(arguments);
});
couchdb-seed-design(db, design, cb)
db
(object
, required) - nano
(or compatible) database objectdesign
(object
, required) - design objectcb
(function
, optional) - callbackCreates a set of CouchDB design documents basing on design
object. Each key
in design
object becomes a separate design document called ('_design/' + key
).
If no changes between remote design documents and design
object are detected,
no updates are sent to CouchDB.
FAQs
Seed CouchDB's design documents with nano
The npm package couchdb-seed-design receives a total of 1 weekly downloads. As such, couchdb-seed-design popularity was classified as not popular.
We found that couchdb-seed-design demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.