Socket
Socket
Sign inDemoInstall

@microfleet/plugin-couchdb

Package Overview
Dependencies
150
Maintainers
2
Versions
93
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @microfleet/plugin-couchdb

couchdb adapter for microfleet


Version published
Weekly downloads
38
Maintainers
2
Created
Weekly downloads
 

Readme

Source

Microfleet CouchDB Plugin

Adds CouchDB support to microfleet. Learn more at https://github.com/apache/couchdb-nano and https://couchdb.apache.org/

Install

yarn add @microfleet/plugin-couchdb

Configuration

To make use of the plugin adjust microfleet configuration in the following way:

exports.plugins = [
  ...,
  'couchdb',
  ...
]

exports.couchdb = {
  connection: 'http://username:password@database:5984', // will connect to this instance
  database: 'sample', // all operations will be scoped to this database
  indexDefinitions: [{ // optional section for indexes to be created on startup
    fields: ['_id', 'name'],
    name: 'basic',
    ddoc: '_id_for_index', // this is important so that we dont create the same index over and over again
  }]
}

Interface

service.couchdb exposes document functions interface as described in here: https://github.com/apache/couchdb-nano#document-functions

FAQs

Last updated on 12 Feb 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc