A simple, promise-based PostgreSQL query builder built on pg 4.x and psqljs. Version 1.0.2 (last released in 2016) targets Node 0.12.x and CommonJS only. Provides basic CRUD helpers (insert, where, update, delete) and raw SQL execution. No TypeScript types, no connection pooling, and no migration tooling. Deprecated in favor of modern alternatives like pg-promise, knex, or Sequelize.
npm install acidjsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes acid.js with a PostgreSQL connection string and runs a raw SQL query.
Migrate to a maintained library like pg-promise or knex.
Use Node 0.12 or upgrade to a modern library.
Pin pg to 4.x or use a different library.
Use .then(function(rows) { rows.forEach(...) }) or rows[0].Implement your own pool with pg directly, or switch to a library with built-in pooling.
npm install acidjs --save
var acid = require('acidjs')('postgres://user:pass@host/db');Run CREATE TABLE via psql or raw SQL before using CRUD methods.