{"id":28490995,"url":"https://github.com/pasupulaphani/node-pg-connection-pool","last_synced_at":"2026-05-16T22:08:51.898Z","repository":{"id":70102265,"uuid":"81489184","full_name":"pasupulaphani/node-pg-connection-pool","owner":"pasupulaphani","description":"Simplistic node postgres connection pool ready to scale","archived":false,"fork":false,"pushed_at":"2023-06-20T22:26:35.000Z","size":118,"stargazers_count":0,"open_issues_count":2,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T04:38:34.494Z","etag":null,"topics":["database","native-bindings-support","pg-connection-pool","postgres-connection-pool"],"latest_commit_sha":null,"homepage":"https://pasupulaphani.github.io/node-pg-connection-pool/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pasupulaphani.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-09T19:55:27.000Z","updated_at":"2017-02-09T23:43:48.000Z","dependencies_parsed_at":"2025-03-01T00:02:11.690Z","dependency_job_id":"e1d09fa4-917d-4db1-97d1-a67e597c4c24","html_url":"https://github.com/pasupulaphani/node-pg-connection-pool","commit_stats":{"total_commits":38,"total_committers":2,"mean_commits":19.0,"dds":"0.13157894736842102","last_synced_commit":"da6bf224d1e088b4dd75eddc166213c0d5a7d3f5"},"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/pasupulaphani/node-pg-connection-pool","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pasupulaphani%2Fnode-pg-connection-pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pasupulaphani%2Fnode-pg-connection-pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pasupulaphani%2Fnode-pg-connection-pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pasupulaphani%2Fnode-pg-connection-pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pasupulaphani","download_url":"https://codeload.github.com/pasupulaphani/node-pg-connection-pool/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pasupulaphani%2Fnode-pg-connection-pool/sbom","scorecard":{"id":721655,"data":{"date":"2025-08-11","repo":{"name":"github.com/pasupulaphani/node-pg-connection-pool","commit":"da6bf224d1e088b4dd75eddc166213c0d5a7d3f5"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.6,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating mhart/alpine-node:7 to mhart/alpine-node:7@sha256:d334920c966d440676ce9d1e6162ab544349e4a4359c517300391c877bcffb8c","Warn: containerImage not pinned by hash: test/Dockerfile.test:1: pin your Docker image by updating mhart/alpine-node:7 to mhart/alpine-node:7@sha256:d334920c966d440676ce9d1e6162ab544349e4a4359c517300391c877bcffb8c","Warn: downloadThenRun not pinned by hash: Dockerfile:10-16","Warn: downloadThenRun not pinned by hash: test/Dockerfile.test:14-20","Info:   0 out of   2 containerImage dependencies pinned","Info:   0 out of   2 downloadThenRun dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"58 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-832h-xg76-4gv6","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-9vvw-cc9w-f27h","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-h6ch-v84p-w6p9","Warn: Project is vulnerable to: GHSA-qrmc-fj45-qfc2","Warn: Project is vulnerable to: GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: GHSA-qh2h-chj9-jffq","Warn: Project is vulnerable to: GHSA-q42p-pg8m-cqh6","Warn: Project is vulnerable to: GHSA-w457-6q6x-cgp9","Warn: Project is vulnerable to: GHSA-62gr-4qp9-h98f","Warn: Project is vulnerable to: GHSA-f52g-6jhx-586p","Warn: Project is vulnerable to: GHSA-2cf5-4w76-r9qv","Warn: Project is vulnerable to: GHSA-3cqr-58rm-57f8","Warn: Project is vulnerable to: GHSA-g9r4-xpmj-mj65","Warn: Project is vulnerable to: GHSA-q2c6-c6pm-g3gh","Warn: Project is vulnerable to: GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: GHSA-44pw-h2cw-w3vq","Warn: Project is vulnerable to: GHSA-jp4x-w63m-7wgm","Warn: Project is vulnerable to: GHSA-c429-5p7v-vgjp","Warn: Project is vulnerable to: GHSA-4hpf-3wq7-5rpr","Warn: Project is vulnerable to: GHSA-f522-ffg8-j8r6","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-896r-f27r-55mw","Warn: Project is vulnerable to: GHSA-282f-qqgm-c34q","Warn: Project is vulnerable to: GHSA-fvqr-27wr-82fm","Warn: Project is vulnerable to: GHSA-4xc9-xhrj-v574","Warn: Project is vulnerable to: GHSA-x5rq-j2xg-h7qm","Warn: Project is vulnerable to: GHSA-jf85-cpcp-j695","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-7px7-7xjx-hxm8","Warn: Project is vulnerable to: GHSA-x5pg-88wf-qq4p","Warn: Project is vulnerable to: GHSA-p9wx-2529-fp83","Warn: Project is vulnerable to: GHSA-5v2h-r2cx-5xgj","Warn: Project is vulnerable to: GHSA-rrrm-qjm4-v8hf","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-w9mr-4mfr-499f","Warn: Project is vulnerable to: GHSA-gqgv-6jq5-jjj9","Warn: Project is vulnerable to: GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: GHSA-p8p7-x288-28g6","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-2m39-62fm-q8r3","Warn: Project is vulnerable to: GHSA-mf6x-7mm4-x2g7","Warn: Project is vulnerable to: GHSA-mxhp-79qh-mcx6","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: GHSA-g7q5-pjjr-gqvp","Warn: Project is vulnerable to: GHSA-72xf-g2v4-qvf3","Warn: Project is vulnerable to: GHSA-xc7v-wxcw-j472","Warn: Project is vulnerable to: GHSA-cf4h-3jhx-xvhq"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T11:33:06.203Z","repository_id":70102265,"created_at":"2025-08-22T11:33:06.203Z","updated_at":"2025-08-22T11:33:06.203Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33120485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-16T18:38:32.183Z","status":"ssl_error","status_checked_at":"2026-05-16T18:38:29.903Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","native-bindings-support","pg-connection-pool","postgres-connection-pool"],"created_at":"2025-06-08T07:31:03.730Z","updated_at":"2026-05-16T22:08:51.875Z","avatar_url":"https://github.com/pasupulaphani.png","language":"JavaScript","funding_links":["http://patreon.com/phaninder"],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/node-pg-connection-pool.svg)](https://badge.fury.io/js/node-pg-connection-pool)\n[![Build Status](https://travis-ci.org/pasupulaphani/node-pg-connection-pool.svg?branch=master)](https://travis-ci.org/pasupulaphani/node-pg-connection-pool)\n[![Coverage Status](https://coveralls.io/repos/github/pasupulaphani/node-pg-connection-pool/badge.svg?branch=master)](https://coveralls.io/github/pasupulaphani/node-pg-connection-pool?branch=master)\n[![Dependency Status](https://www.versioneye.com/user/projects/58780c851fe8e3003e7a83b2/badge.svg?style=flat-square)](https://www.versioneye.com/user/projects/58780c851fe8e3003e7a83b2)\n[![Gratipay donate button](https://img.shields.io/badge/gratipay-donate-yellow.svg?style=flat-square)](https://gratipay.com/simple-redis-store/)\n\n# node-pg-connection-pool [![See on Github](https://github.com/themes/tactile/images/octocat-icon.png)](https://github.com/pasupulaphani/node-pg-connection-pool)\n\nSimplistic node postgres connection pool ready can scale with generic-pool support\n\n\n## Prerequisites\n\n```node \u003e= 4``` This module requires nodejs v4 or above as it has dependencies on es6 components such as Map, Set, Promise etc.\n\n### Getting started\n\n```\n    npm install node-pg-connection-pool\n```\n\n#### Usage\n\n- Seemless execution of commands.\n```\n    var PgPool = require(\"node-pg-connection-pool\");\n    var pool = new PgPool();\n\n    const result = await pool.query(\"SELECT $1::int AS number;\", [\"1\"]);\n```\n\n- Want postgres raw connection? you got it\n```\n    pool.acquire()\n      .then(client =\u003e {\n\n        // Do some work\n\n        // At the end release the conn back to the pool\n        pool.release(client)\n      });\n```\n\n\n#### API\n\n- PgPool([options])\n\n##### `options` object properties\n\n\u003ctable class=\"params\"\u003e\n  \u003cthead\u003e\n    \u003ctr\u003e\n      \u003cth\u003eName\u003c/th\u003e\n      \u003cth\u003eType\u003c/th\u003e\n      \u003cth class=\"last\"\u003eDescription\u003c/th\u003e\n    \u003c/tr\u003e\n  \u003c/thead\u003e\n  \u003ctbody\u003e\n    \u003ctr\u003e\n      \u003ctd class=\"name\"\u003e\u003ccode\u003ename\u003c/code\u003e\u003c/td\u003e\n      \u003ctd class=\"type\"\u003e\n        \u003cspan class=\"param-type\"\u003estring\u003c/span\u003e\n      \u003c/td\u003e\n      \u003ctd class=\"description last\"\u003e\n        \u003cp\u003eName your pool\u003c/p\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd class=\"name\"\u003e\u003ccode\u003epgOptions\u003c/code\u003e\u003c/td\u003e\n      \u003ctd class=\"type\"\u003e\n        \u003cspan class=\"param-type\"\u003eobject\u003c/span\u003e\n      \u003c/td\u003e\n      \u003ctd class=\"description last\"\u003e\n        \u003cp\u003eopts from \u003ca href=\"https://github.com/brianc/node-postgres/wiki/Client#parameters\"\u003enode-postgres#client-parameters\u003c/a\u003e\u003c/p\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd class=\"name\"\u003e\u003ccode\u003epgNative\u003c/code\u003e\u003c/td\u003e\n      \u003ctd class=\"type\"\u003e\n        \u003cspan class=\"param-type\"\u003eboolean\u003c/span\u003e\n      \u003c/td\u003e\n      \u003ctd class=\"description last\"\u003e\n        \u003cp\u003eUse the native bindings. Install \u003ccode\u003epg-native\u003c/code\u003e in your app before setting this to true.\u003c/p\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd class=\"name\"\u003e\u003ccode\u003epoolOptions\u003c/code\u003e\u003c/td\u003e\n      \u003ctd class=\"type\"\u003e\n        \u003cspan class=\"param-type\"\u003eobject\u003c/span\u003e\n      \u003c/td\u003e\n      \u003ctd class=\"description last\"\u003e\n        \u003cp\u003eopts from \u003ca href=\"https://github.com/coopernurse/node-pool#createpool\"\u003enode-pool#createpool\u003c/a\u003e\u003c/p\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n      \u003ctd class=\"name\"\u003e\u003ccode\u003elogger\u003c/code\u003e\u003c/td\u003e\n      \u003ctd class=\"type\"\u003e\n        \u003cspan class=\"param-type\"\u003eobject\u003c/span\u003e\n      \u003c/td\u003e\n      \u003ctd class=\"description last\"\u003e\n        \u003cp\u003eInject your custom logger\u003c/p\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/tbody\u003e\n\u003c/table\u003e\n\n\n### Run tests\n\n    sh test.sh\n\n## Contribute\n\n[Discover how you can contribute by heading on over to the `CONTRIBUTING.md` file.](https://github.com/pasupulaphani/node-pg-connection-pool/blob/master/CONTRIBUTING.md)\n\n## Backers\n\n### Maintainers\n\nThese amazing people are maintaining this project:\n\n*   [Phani](https://github.com/pasupulaphani) — [view contributions](https://github.com/pasupulaphani/node-pg-connection-pool/commits?author=pasupulaphani)\n\n### Sponsors\n\nNo sponsors yet! Will you be the first?\n\n[![Patreon donate button](https://img.shields.io/badge/patreon-donate-yellow.svg)](http://patreon.com/phaninder \"Donate to this project using Patreon\")\n[![Gratipay donate button](https://img.shields.io/badge/gratipay-donate-yellow.svg)](https://gratipay.com/~pasupulaphani/ \"Donate weekly to this project using Gratipay\")\n[![Flattr donate button](https://img.shields.io/badge/flattr-donate-yellow.svg)](https://flattr.com/profile/pasupulaphani \"Donate to this project using Flattr\")\n\u003c!-- [![PayPal donate button](https://img.shields.io/badge/paypal-donate-yellow.svg)](https://phaninder.com/paypal \"Donate to this project using Paypal\") --\u003e\n\u003c!-- [![Bitcoin donate button](https://img.shields.io/badge/bitcoin-donate-yellow.svg)](https://phaninder.com/bitcoin \"Donate once-off to this project using Bitcoin\") --\u003e\n\u003c!-- [![Wishlist browse button](https://img.shields.io/badge/wishlist-donate-yellow.svg)](https://phaninder.com/wishlist \"Buy an item on our wishlist for us\") --\u003e\n\u003ca href='https://pledgie.com/campaigns/33355'\u003e\u003cimg alt='Click here to lend your support to: simple-node-redis-cache and make a donation at pledgie.com !' src='https://pledgie.com/campaigns/33355.png?skin_name=chrome' border='0' \u003e\u003c/a\u003e\n\n### Contributors\n\nThese amazing people have contributed to/reviewed this project:\n\n*   [Oliver Brooks](https://github.com/oliverbrooks)\n\n[Discover how you can contribute by heading on over to the `CONTRIBUTING.md` file.](https://github.com/pasupulaphani/node-pg-connection-pool/blob/master/CONTRIBUTING.md)\n\n\u003cbr /\u003e\n\u003cscript\u003e(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');ga('create', 'UA-57413413-7', 'auto');ga('send', 'pageview');\u003c/script\u003e\n---\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasupulaphani%2Fnode-pg-connection-pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpasupulaphani%2Fnode-pg-connection-pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpasupulaphani%2Fnode-pg-connection-pool/lists"}