This commit is contained in:
Martin Donnelly 2016-03-21 16:50:23 +00:00
parent c5b3640d32
commit 26c903f769

View File

@ -4,24 +4,44 @@ var db_name = 'keeper';
var keeper = nano.use(db_name);
keeper.destroy('_design/titles', function(err, body) {
if (!err)
if (error) {
console.log(error);
} else
{
console.log(body);
}
});
keeper.destroy('_design/reducedView', function(err, body) {
if (!err)
if (error) {
console.log(error);
} else
{
console.log(body);
}
});
keeper.destroy('_design/taglist', function(err, body) {
if (!err)
if (error) {
console.log(error);
} else
{
console.log(body);
}
});
keeper.destroy('_design/getAllTags', function(err, body) {
if (!err)
if (error) {
console.log(error);
} else
{
console.log(body);
}
});
keeper.destroy('_design/getTagByKey', function(err, body) {
if (!err)
if (error) {
console.log(error);
} else
{
console.log(body);
}
});
keeper.insert(