A lightweight wrapper around node-postgres (pg) for running AWS Redshift queries. Version 1.0.2 is the latest stable release. It simplifies connection handling and query execution but has no release cadence documented. It is thin, minimal, and dependency-light compared to full ORMs, relying on pg for the PostgreSQL protocol.
npm install redshift-sqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to configure, connect to Redshift, and run a simple SELECT query using callback pattern.
Use pg (node-postgres) directly with Redshift-specific connection options.
Wrap rssql in try-catch and add timeout logic.
Use util.promisify or wrap in a Promise manually: new Promise((res,rej) => rssql(query, (e,r) => e?rej(e):res(r)))
Use pg Pool directly for multiple queries.
Run 'npm install redshift-sql' and ensure package.json includes 'redshift-sql'.
Use 'const rssql = require('redshift-sql')(config);' or 'const rssql = require('redshift-sql'); rssql(config);'Verify host, port (default 5439), and security group settings.