{"library":"pg-cr-layer","type":"library","category":null,"description":"pg-cr-layer (v2.0.26) is a lightweight PostgreSQL interface layer that wraps the popular pg library with ES2015 promises and provides a simplified API for common database operations like queries, transactions, and stored procedures. It is designed to be compatible with mssql-cr-layer for easy switching between PostgreSQL and MSSQL. The package offers a pool configuration and parameterized queries with positional ($1, $2) and named (@param) placeholders, though it has not been updated since 2019 and lacks TypeScript definitions.","language":"javascript","status":"maintenance","version":"2.0.26","tags":["javascript","postgres","pg","sql","common","requests","interface"],"last_verified":"Fri Jun 05","install":[{"cmd":"npm install pg-cr-layer","imports":["const PgCrLayer = require('pg-cr-layer')","new PgCrLayer(config)","layer.execute(sql, params, options)"]},{"cmd":"yarn add pg-cr-layer","imports":[]},{"cmd":"pnpm add pg-cr-layer","imports":[]}],"homepage":"https://github.com/andrglo/pg-cr-layer#readme","github":"https://github.com/andrglo/pg-cr-layer","docs":null,"changelog":null,"pypi":null,"npm":"pg-cr-layer","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":null}