A simple PostgreSQL wrapper for Node.js, version 0.14.0, maintained by CartoDB for use in Windshaft and CartoDB-SQL-API. It provides opinionated connection logic for CartoDB's username/database conventions. The package has low maintenance activity and relies on node-postgres (pg). It is deprecated in favor of direct pg usage.
npm install cartodb-psqlNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to instantiate CartoDBPSQL with connection parameters and execute a simple query.
Replace with `const { Pool } = require('pg');` and manage connections manually.Upgrade Node.js to version 10 or higher.
Use compatible Node/npm versions.
Specify all connection parameters explicitly.
Run `npm install cartodb-psql` (if still available) or consider using 'pg' instead.
Use `const CartoDBPSQL = require('cartodb-psql');`Ensure PostgreSQL service is started and host is correct.