pg-telepods
Takes the contents of one PostgreSQL table, applies a transformation function to each row and ensures a target table is kept in sync
Install
$ npm install pg-telepods --save
Usage
const pg = const startTelepods = // Make a new Postgres clientconst client = 'postgres://postgres:postgres@localhost:5432/my_test_db'client // Start the Telepods...
Testing
Before running these tests, you'll need a test PostgreSQL database available and set a PG_CONNECTION_STRING
environment variable to point to it, for example:
PG_CONNECTION_STRING=postgres://postgres:postgres@localhost:5432/my_test_db
$ npm test