A very light [node-postgres](https://github.com/brianc/node-postgres) wrapper for running AWS Redshift queries.
npm install redshift-sqlA very light node-postgres wrapper for running AWS Redshift queries.
Download node at nodejs.org and install it, if you haven't already.
``sh`
npm install redshift-sql --save
`js
var config = {
host: 'rs-cluster.us-east-1.redshift.amazonaws.com',
db: 'dev',
user: 'rsadmin',
password: 'rsPassword'
};
var rssql = require('redshift-sql')(config);
var query = 'select * from myTable limit 10';
rssql(query, function cb(err, result) {
if (err) {
return console.error(err);
}
// do stuff
});
`
`sh``
npm install
npm test
- pg: PostgreSQL client - pure javascript & libpq with the same API
- package-json-to-readme: Generate a README.md from package.json contents
ISC
_Generated by package-json-to-readme_