Load data into Redshift using Node.js
问题 What are some ways of inserting data into Amazon Redshift using node.js? This should be pretty straightforward, but I was unable to find any concrete example for efficient loading. 回答1: One way of doing that would be to load the data into S3 using AWS node.js SDK (there's an example in the documentation), then use node-pg to COPY the data into Redshift : var pg = require('pg'); var conString = "postgres://user:password@db-endpoint:port/schema"; var client = new pg.Client(conString); client