Socket
Socket
Sign inDemoInstall

couch2pg

Package Overview
Dependencies
110
Maintainers
11
Versions
14
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.6.0 to 0.7.0

6

package.json
{
"name": "couch2pg",
"version": "0.6.0",
"version": "0.7.0",
"bin": {

@@ -23,5 +23,5 @@ "couch2pg": "./cli.js"

"loglevel-message-prefix": "^2.0.1",
"pg": "^4.0.0",
"pg": "^8.0.0",
"pg-format": "^1.0.0",
"pg-promise": "^3.0.0",
"pg-promise": "^10.0.0",
"postgrator": "^2.8.2",

@@ -28,0 +28,0 @@ "pouchdb-core": "^7.0.0",

@@ -1,7 +0,17 @@

# couch2pg [![Build Status](https://travis-ci.org/medic/couch2pg.svg?branch=master)](https://travis-ci.org/medic/couch2pg/branches)
# couch2pg
Library and cli for one-way replicating CouchDB databases to PostgreSQL 9.4+.
## Required database setup
## Requirements
### Node and npm
You will need to install the following:
- [Node.js](https://nodejs.org) 8.11.x up to 12.x.x. Must be an LTS release. LTS is designated with an even major version number.
- [npm](https://npmjs.com/) 6.x.x above
### Database setup
couch2pg supports PostgreSQL 9.4 and greater. The user passed in the postgres url needs to have full creation rights on the given database.

@@ -44,11 +54,12 @@

Some environment variables that may be required for the integration tests to run correctly:
* `INT_PG_HOST`: postgres host, defaults to `localhost`
* `INT_PG_PORT`: postgres port, defaults to `5432`
* `INT_PG_USER`: postgres user, defaults to none (system default). This user must be able to create databases on the given host.
* `INT_PG_PASS`: user's password, defaults to none (system default)
* `INT_PG_DB`: test databse to use, defaults to `medic-analytics-test`
* `INT_COUCHDB_URL`: url to test couchdb, defaults to `http://admin:pass@localhost:5894/medic-analytics-test`. The user must have the ability to destory and create databases on that host.
* `INT_PG_HOST`: postgres host, defaults to `localhost`
* `INT_PG_PORT`: postgres port, defaults to `5432`
* `INT_PG_USER`: postgres user, defaults to none (system default). This user must be able to create databases on the given host.
* `INT_PG_PASS`: user's password, defaults to none (system default)
* `INT_PG_DB`: test database to use, defaults to `medic-analytics-test`
* `INT_COUCHDB_URL`: url to test couchdb, defaults to `http://admin:pass@localhost:5984/medic-analytics-test`. The user must have the ability to destory and create databases on that host.
You may be able to get away with not setting any of these, or only needing to set some of these depending on your development environment.
NB: the integration tests destroy and re-create the given databases each time they are run. Use test databases.
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