Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

couchdb_utilities

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb_utilities

This package contains utilties to use and support couchdb environments.

  • 1.0.10-prerelease
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Module under development.

couchdb_utilities

Invocation of the module

var couchUtils = require('couchdb_utilities');

Server Utilities

Validate the input connection string
var Boolean = couchUtils.validateConnection ( couchURL ) );
Validate the input connection string
var String = couchUtils.getServerVersion ( couchURL ) );
Validate the input connection string
var String = couchUtils.responseDuration ( couchURL ) );

Database Utilities

Get list of databases
var Array = couchUtils.listDatabases( couchURL ) );
Check if a database exists in the target
var Boolean = couchUtils.databaseExists( couchURL, "test" ) );
Create a database in target
var Boolean = couchUtils.createDatabase( couchURL, "test" ) );
Delete a database in target
var Boolean = couchUtils.deleteDatabase( couchURL, "test" ) );
Obtain details of a database
var Object = couchUtils.getDatabaseDetails( couchURL, "test" ) );

Design Document Utilities

var Array = couchUtils.getDesignDocuments ( couchURL, databaseName ) {

Document Utilities

get a document by ID
var Object = couchUtils.getDocumentbyID ( couchURL, databaseName, docID ) {
create a Document
var Boolean = couchUtils.createDocument( couchURL, databaseName, jsonString ) {
delete a Document
var Boolean = couchUtils.deleteDocument( couchURL, databaseName, docID ) {
Check if the view exist

Design Docs

Create view
Check Views in target
Delete design docs in target db
Create Design docs in target

FAQs

Package last updated on 19 Sep 2017

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc