Change file format in example from .tdv to .tsv

This commit is contained in:
Alex Conlin 2015-12-09 20:31:54 +00:00
parent d2b9677a02
commit 6981ea6ac5

View File

@ -40,7 +40,7 @@ var copyFrom = require('pg-copy-streams').from;
pg.connect(function(err, client, done) { pg.connect(function(err, client, done) {
var stream = client.query(copyFrom('COPY my_table FROM STDIN')); var stream = client.query(copyFrom('COPY my_table FROM STDIN'));
var fileStream = fs.createReadStream('some_file.tdv') var fileStream = fs.createReadStream('some_file.tsv')
fileStream.on('error', done); fileStream.on('error', done);
fileStream.pipe(stream).on('finish', done).on('error', done); fileStream.pipe(stream).on('finish', done).on('error', done);
}); });