couchdb_utilities
Advanced tools
Comparing version 1.0.10-prerelease to 1.0.11-prerelease
{ | ||
"name": "couchdb_utilities", | ||
"version": "v1.0.10prerelease", | ||
"version": "v1.0.11prerelease", | ||
"description": "This package contains utilties to use and support couchdb environments.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -5,3 +5,3 @@ # Module under development. | ||
Invocation of the module | ||
### Invocation of the module | ||
``` | ||
@@ -11,2 +11,28 @@ var couchUtils = require('couchdb_utilities'); | ||
### Simple program | ||
A simple program to obtain the size of all databases in a couchdb account will look like this | ||
``` | ||
var couchUtils = require('couchdb_utilities'); | ||
var CouchURL = process.env.CouchURL; | ||
var outputString = ""; | ||
var databases = couchUtils.listDatabases( CouchURL ); | ||
outputString = outputString + "DatabaseName" + "," + "DatabaseSize(Bytes)" + "\n"; | ||
for ( Counter = 0; Counter < databases.length; Counter++ ) { | ||
outputString = outputString + databases[Counter] + "," + couchUtils.getDatabaseDetails( CouchURL, databases[Counter] ).disk_size + "\n"; | ||
} | ||
console.log(outputString); | ||
$ node getDatabaseSize.js | ||
DatabaseName,DatabaseSize(Bytes) | ||
development,1123012 | ||
preproduction,594596 | ||
production,594596 | ||
test,66352 | ||
test2,17032 | ||
test_backup,66352 | ||
$ | ||
``` | ||
### Server Utilities | ||
@@ -66,10 +92,1 @@ #### Validate the input connection string | ||
``` | ||
#### Check if the view exist | ||
### Design Docs | ||
#### Create view | ||
#### Check Views in target | ||
#### Delete design docs in target db | ||
#### Create Design docs in target |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
7868
90