
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
redshift-query
Advanced tools
Library which allows you to query Redshift using parameterized SQL files and promises
Library which allows you to query Redshift using parameterized SQL files and promises.
npm install redshift-query --save
connection is your Redshift connection info. queryPath is where your SQL files are located at.
const RedshiftQuery = require('redshift-query')
const redshift = new RedshiftQuery({
connection: {
user: 'super_cool_dev_person',
database: 'rad_database',
password: 'horse_battery_staple',
port: 5439,
host: 'rad_redshift'
},
queryPath: './sql'
})
Warning: Do not use raw user input as parameter input, it opens you up to SQL injection attacks.
redshift.queryByFile('count_unicorns.sql', { type: 'flying' })
.then((stable) => {
stable.rows.forEach((unicorn) => {
console.log('Name: ', unicorn.name)
})
})
Warning: Do not use raw user input as parameter input, it opens you up to SQL injection attacks.
redshift.queryByString(`SELECT type, name FROM unicorns WHERE type='flying'`)
.then((stable) => {
stable.rows.forEach((unicorn) => {
console.log('Name: ', unicorn.name)
})
})
SELECT type, name
FROM unicorns
WHERE type='${type}'
Yep, nothing fancy. No need to make it a template string, just put a bunch of text in there (preferably Redshift-compliant SQL)
FAQs
Library which allows you to query Redshift using parameterized SQL files and promises
The npm package redshift-query receives a total of 2 weekly downloads. As such, redshift-query popularity was classified as not popular.
We found that redshift-query demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.