1.0.2 • Published 8 years ago

redshift-sql v1.0.2

Weekly downloads
230
License
ISC
Repository
github
Last release
8 years ago

redshift-sql

A very light node-postgres wrapper for running AWS Redshift queries.

Installation

Download node at nodejs.org and install it, if you haven't already.

npm install redshift-sql --save

Usage

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
});

Tests

npm install
npm test

Dependencies

  • pg: PostgreSQL client - pure javascript & libpq with the same API

Dev Dependencies

License

ISC

Generated by package-json-to-readme

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago