Go to file
2013-11-08 00:15:16 -06:00
test Do not emit row event 2013-10-28 21:50:45 -05:00
.gitignore Initial commit 2013-10-28 17:31:11 -05:00
copy-to.js Do not emit row event 2013-10-28 21:50:45 -05:00
index.js Do not emit row event 2013-10-28 21:50:45 -05:00
package.json Bump version 2013-10-28 21:50:54 -05:00
README.md Create README.md 2013-11-08 00:15:16 -06:00

node-pg-copy-streams

COPY FROM / COPY TO for node-postgres. Stream from one database to another, and stuff.

how? what? huh?

Did you know the all powerful PostgreSQL supports streaming binary data directly into and out of a table? This means you can take your favorite CSV or TSV or whatever format file and pipe it directly into an existing PostgreSQL table. You can also take a table and pipe it directly to a file, another database, stdout, even to /dev/null if you're crazy!

The way I use this usually is to take a table from a production database and replicate it exactly into a dev or local database, but like I said, you can do a lot of funky stuff piping your tables around.
node.js just happens to be fantastic at piping too. We all win!