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

couchdb-to-mysql

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

couchdb-to-mysql

sync between couchdb and mysql

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source
converter

tiny tool to sync data between CouchDB and MySQL

why?

well, i presented CouchDB to a person and the first question was... "can you sync with MySQL?"

"Can PouchDB sync with MongoDB/MySQL/my current non-CouchDB database? No." - CouchDB FAQ.

Whith this tool... Yes.

how?

converter listen for CouchDB changes and reflects them on MySQL.

example
var converter = require('couchdb-to-mysql');
var cvr = converter();
cvr.connect();
cvr.on('created', function (change) {
    // replicate changes on mysql    
});
methods
var converter = require('couchdb-to-mysql')
var cvr = converter(config={})

Optionaly pass in a config:

  • config.couch.host
  • config.couch.port
  • config.couch.database
  • config.mySQL.host
  • config.mySQL.port
  • config.mySQL.user
  • config.mySQL.password
  • config.mySQL.database
events
cvr.on('created', function (change) {})

Every time a document is created, a created event fires.

cvr.on('updated', function (change) {})

Every time a document is updated, a updated event fires.

cvr.on('deleted', function (change) {})

Every time a document is deleted, a deleted event fires.

Keywords

FAQs

Package last updated on 02 Jan 2015

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