
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
postgres-wrapper
Advanced tools
Postgres simple wrapper service.
$ npm install pg-simple-wrapper
const pg = require('pg-simple-wrapper')
// Get one record from db
async function run () {
const id = 1
const query = `
SELECT *
FROM data
WHERE id = $1`
const params = [id]
const object = await pg.one({ query, params }) // return one record in object
const object = await pg.oneOrNone({ query, params }) // return one or none record
const array = await pg.any({ query, params }) // return one or many record in array
const array = await pg.many({ query, params }) // return many records in array
await pg.none({ query, params }) // no returning any record
await pg.end() // end postgress connection
}
run()
FAQs
Postgres simple wrapper
The npm package postgres-wrapper receives a total of 7 weekly downloads. As such, postgres-wrapper popularity was classified as not popular.
We found that postgres-wrapper 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.