couch2pg
Advanced tools
Comparing version 0.6.0 to 0.7.0
{ | ||
"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. |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 6 instances in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
47553
65
6
1
+ Addedassert-options@0.8.0(transitive)
+ Addedbuffer-writer@2.0.0(transitive)
+ Addedpacket-reader@1.0.0(transitive)
+ Addedpg@8.12.08.8.0(transitive)
+ Addedpg-cloudflare@1.1.1(transitive)
+ Addedpg-connection-string@2.6.4(transitive)
+ Addedpg-minify@1.6.2(transitive)
+ Addedpg-pool@3.6.2(transitive)
+ Addedpg-promise@10.15.4(transitive)
+ Addedpg-protocol@1.6.1(transitive)
+ Addedpg-types@2.2.0(transitive)
+ Addedpgpass@1.0.5(transitive)
+ Addedpostgres-array@2.0.0(transitive)
+ Addedspex@3.2.0(transitive)
+ Addedsplit2@4.2.0(transitive)
- Removedpg-minify@0.2.5(transitive)
- Removedpg-promise@3.9.1(transitive)
- Removedspex@0.4.6(transitive)
Updatedpg@^8.0.0
Updatedpg-promise@^10.0.0