jo / couchdb-ensure

Create database unless it exists.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CouchDB Ensure

Create database unless it exists.

API

ensure(url[, options], callback)

Example

var ensure = require('couchdb-ensure')
ensure('http://localhost:5984/mydb', function(error, response) {
  // here we go, mydb exists
})

CLI

couchdb-ensure URL

Example

couchdb-ensure http://localhost:5984/mydb

Tests

npm test

About

Create database unless it exists.

License:Other


Languages

Language:JavaScript 100.0%