{"library":"pg-query-formatter","type":"library","category":null,"description":"Lightweight query string formatter for PostgreSQL in Node.js (v0.0.5, last updated 2014). Provides a printf-like syntax for safely building SQL queries with escaping for identifiers, literals, and subqueries. Supports parameterized queries via toParam() for use with node-postgres. Currently in maintenance mode; no updates since 2014. Alternative libraries like pg-promise, squel, or knex may be more actively maintained.","language":"javascript","status":"maintenance","version":"0.0.5","tags":["javascript","pg","db","database","query","postgres"],"last_verified":"Thu Jun 04","install":[{"cmd":"npm install pg-query-formatter","imports":["const Query = require('pg-query-formatter');","const sql = new Query('SELECT %L', 'hello');","const list = new Query.List(' AND ');"]},{"cmd":"yarn add pg-query-formatter","imports":[]},{"cmd":"pnpm add pg-query-formatter","imports":[]}],"homepage":"https://github.com/naturalatlas/pg-query-formatter","github":"git://github.com/naturalatlas/pg-query-formatter","docs":null,"changelog":null,"pypi":null,"npm":"pg-query-formatter","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}