pg
PostgreSQL client - pure javascript & libpq with the same API
Last updated 11 years ago by brianc .
Repository · Bugs · Original npm · Tarball · package.json
$ npm install pg 
SYNC missed versions from official npm registry.

node-postgres

Build Status NPM version NPM downloads

Non-blocking PostgreSQL client for Node.js. Pure JavaScript and optional native libpq bindings.

Install

$ npm install pg

:star: Documentation :star:

Features

  • Pure JavaScript client and native libpq bindings share the same API
  • Connection pooling
  • Extensible JS ↔ PostgreSQL data-type coercion
  • Supported PostgreSQL features
    • Parameterized queries
    • Named statements with query plan caching
    • Async notifications with LISTEN/NOTIFY
    • Bulk import & export with COPY TO/COPY FROM

Extras

node-postgres is by design pretty light on abstractions. These are some handy modules we've been using over the years to complete the picture. The entire list can be found on our wiki.

Support

node-postgres is free software. If you encounter a bug with the library please open an issue on the GitHub repo. If you have questions unanswered by the documentation please open an issue pointing out how the documentation was unclear & I will do my best to make it better!

When you open an issue please provide:

  • version of Node
  • version of Postgres
  • smallest possible snippet of code to reproduce the problem

You can also follow me @briancarlson if that's your thing. I try to always announce noteworthy changes & developments with node-postgres on Twitter.

Sponsorship :two_hearts:

node-postgres's continued development has been made possible in part by generous finanical support from the community.

If you or your company are benefiting from node-postgres and would like to help keep the project financially sustainable please consider supporting its development.

Contributing

:heart: contributions!

I will happily accept your pull request if it:

  • has tests
  • looks reasonable
  • does not break backwards compatibility

If your change involves breaking backwards compatibility please please point that out in the pull request & we can discuss & plan when and how to release it and what type of documentation or communicate it will require.

Troubleshooting and FAQ

The causes and solutions to common errors can be found among the Frequently Asked Questions (FAQ)

License

Copyright (c) 2010-2020 Brian Carlson (brian.m.carlson@gmail.com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Current Tags

  • 4.0.0-beta2                                ...           beta (10 years ago)
  • 8.13.0                                ...           latest (2 months ago)

224 Versions

  • 8.13.0                                ...           2 months ago
  • 8.12.0                                ...           5 months ago
  • 8.11.6                                ...           5 months ago
  • 8.11.5                                ...           7 months ago
  • 8.11.4                                ...           8 months ago
  • 8.11.3                                ...           a year ago
  • 8.11.2                                ...           a year ago
  • 8.11.1                                ...           a year ago
  • 8.11.0                                ...           2 years ago
  • 8.10.0                                ...           2 years ago
  • 8.9.0                                ...           2 years ago
  • 8.8.0                                ...           2 years ago
  • 8.7.3                                ...           3 years ago
  • 8.7.1                                ...           3 years ago
  • 8.7.0                                ...           3 years ago
  • 8.6.0                                ...           4 years ago
  • 8.5.1                                ...           4 years ago
  • 8.5.0                                ...           4 years ago
  • 8.4.2                                ...           4 years ago
  • 8.4.1                                ...           4 years ago
  • 8.4.0                                ...           4 years ago
  • 8.3.3                                ...           4 years ago
  • 8.3.2                                ...           4 years ago
  • 8.3.0                                ...           4 years ago
  • 8.2.2                                ...           4 years ago
  • 8.2.1                                ...           4 years ago
  • 8.2.0                                ...           5 years ago
  • 8.1.0                                ...           5 years ago
  • 8.0.3                                ...           5 years ago
  • 8.0.2                                ...           5 years ago
  • 8.0.1                                ...           5 years ago
  • 8.0.0                                ...           5 years ago
  • 7.18.2                                ...           5 years ago
  • 7.18.1                                ...           5 years ago
  • 7.18.0                                ...           5 years ago
  • 7.17.1                                ...           5 years ago
  • 7.17.0                                ...           5 years ago
  • 7.16.1                                ...           5 years ago
  • 7.16.0                                ...           5 years ago
  • 7.15.2                                ...           5 years ago
  • 7.15.1                                ...           5 years ago
  • 7.15.0                                ...           5 years ago
  • 7.14.0                                ...           5 years ago
  • 7.13.0                                ...           5 years ago
  • 7.12.1                                ...           5 years ago
  • 7.12.0                                ...           5 years ago
  • 7.11.0                                ...           6 years ago
  • 7.10.0                                ...           6 years ago
  • 7.9.0                                ...           6 years ago
  • 7.8.2                                ...           6 years ago
  • 7.8.1                                ...           6 years ago
  • 7.8.0                                ...           6 years ago
  • 7.7.1                                ...           6 years ago
  • 7.7.0                                ...           6 years ago
  • 7.6.1                                ...           6 years ago
  • 7.6.0                                ...           6 years ago
  • 7.5.0                                ...           6 years ago
  • 7.4.3                                ...           7 years ago
  • 7.4.2                                ...           7 years ago
  • 7.4.1                                ...           7 years ago
  • 7.4.0                                ...           7 years ago
  • 7.3.0                                ...           7 years ago
  • 7.2.0                                ...           7 years ago
  • 7.1.2                                ...           7 years ago
  • 7.0.3                                ...           7 years ago
  • 7.1.1                                ...           7 years ago
  • 6.4.2                                ...           7 years ago
  • 6.3.3                                ...           7 years ago
  • 6.2.5                                ...           7 years ago
  • 6.1.6                                ...           7 years ago
  • 6.0.5                                ...           7 years ago
  • 5.2.1                                ...           7 years ago
  • 4.5.7                                ...           7 years ago
  • 3.6.4                                ...           7 years ago
  • 2.11.2                                ...           7 years ago
  • 7.1.0                                ...           7 years ago
  • 7.0.2                                ...           7 years ago
  • 7.0.1                                ...           7 years ago
  • 7.0.0                                ...           7 years ago
  • 6.4.1                                ...           7 years ago
  • 6.4.0                                ...           7 years ago
  • 6.3.1                                ...           7 years ago
  • 6.3.0                                ...           7 years ago
  • 6.2.4                                ...           7 years ago
  • 6.2.3                                ...           7 years ago
  • 6.2.2                                ...           8 years ago
  • 6.1.5                                ...           8 years ago
  • 6.1.4                                ...           8 years ago
  • 6.1.3                                ...           8 years ago
  • 6.1.2                                ...           8 years ago
  • 6.1.1                                ...           8 years ago
  • 6.1.0                                ...           8 years ago
  • 6.0.4                                ...           8 years ago
  • 6.0.3                                ...           8 years ago
  • 6.0.2                                ...           8 years ago
  • 6.0.1                                ...           8 years ago
  • 6.0.0                                ...           8 years ago
  • 5.1.0                                ...           8 years ago
  • 5.0.0                                ...           8 years ago
  • 4.5.6                                ...           8 years ago
  • 4.5.5                                ...           9 years ago
  • 4.5.4                                ...           9 years ago
  • 4.5.3                                ...           9 years ago
  • 4.5.2                                ...           9 years ago
  • 4.5.1                                ...           9 years ago
  • 4.5.0                                ...           9 years ago
  • 4.4.6                                ...           9 years ago
  • 4.4.5                                ...           9 years ago
  • 4.4.4                                ...           9 years ago
  • 4.4.3                                ...           9 years ago
  • 4.4.2                                ...           9 years ago
  • 4.4.1                                ...           9 years ago
  • 4.4.0                                ...           9 years ago
  • 4.3.0                                ...           10 years ago
  • 4.2.0                                ...           10 years ago
  • 4.1.1                                ...           10 years ago
  • 4.1.0                                ...           10 years ago
  • 4.0.0                                ...           10 years ago
  • 3.6.3                                ...           10 years ago
  • 3.6.2                                ...           10 years ago
  • 3.6.1                                ...           10 years ago
  • 4.0.0-beta2                                ...           10 years ago
  • 3.6.0                                ...           10 years ago
  • 3.5.0                                ...           10 years ago
  • 3.4.5                                ...           10 years ago
  • 3.4.4                                ...           10 years ago
  • 3.4.3                                ...           10 years ago
  • 3.4.2                                ...           10 years ago
  • 3.4.1                                ...           10 years ago
  • 3.4.0                                ...           10 years ago
  • 3.3.0                                ...           10 years ago
  • 3.2.0                                ...           10 years ago
  • 3.1.0                                ...           11 years ago
  • 3.0.3                                ...           11 years ago
  • 3.0.2                                ...           11 years ago
  • 2.11.1                                ...           11 years ago
  • 2.11.0                                ...           11 years ago
  • 2.10.0                                ...           11 years ago
  • 2.9.0                                ...           11 years ago
  • 2.8.5                                ...           11 years ago
  • 2.8.4                                ...           11 years ago
  • 2.8.3                                ...           11 years ago
  • 2.8.2                                ...           11 years ago
  • 2.8.1                                ...           11 years ago
  • 2.8.0                                ...           11 years ago
  • 2.7.0                                ...           11 years ago
  • 2.6.2                                ...           11 years ago
  • 2.6.1                                ...           11 years ago
  • 2.6.0                                ...           11 years ago
  • 2.5.1                                ...           11 years ago
  • 2.5.0                                ...           11 years ago
  • 2.4.0                                ...           11 years ago
  • 2.3.1                                ...           11 years ago
  • 2.3.0                                ...           11 years ago
  • 2.2.0                                ...           11 years ago
  • 2.1.0                                ...           11 years ago
  • 2.0.0                                ...           11 years ago
  • 1.3.0                                ...           11 years ago
  • 1.2.0                                ...           11 years ago
  • 1.1.3                                ...           11 years ago
  • 1.1.2                                ...           11 years ago
  • 1.1.1                                ...           11 years ago
  • 1.1.0                                ...           12 years ago
  • 1.0.4                                ...           12 years ago
  • 1.0.3                                ...           12 years ago
  • 1.0.2                                ...           12 years ago
  • 1.0.1                                ...           12 years ago
  • 1.0.0                                ...           12 years ago
  • 0.15.1                                ...           12 years ago
  • 0.15.0                                ...           12 years ago
  • 0.14.1                                ...           12 years ago
  • 0.14.0                                ...           12 years ago
  • 0.13.3                                ...           12 years ago
  • 0.13.1                                ...           12 years ago
  • 0.13.0                                ...           12 years ago
  • 0.12.3                                ...           12 years ago
  • 0.12.1                                ...           12 years ago
  • 0.12.0                                ...           12 years ago
  • 0.11.3                                ...           12 years ago
  • 0.11.2                                ...           12 years ago
  • 0.11.1                                ...           12 years ago
  • 0.10.2                                ...           12 years ago
  • 0.10.0                                ...           12 years ago
  • 0.9.0                                ...           12 years ago
  • 0.8.8                                ...           12 years ago
  • 0.8.7                                ...           12 years ago
  • 0.8.6                                ...           12 years ago
  • 0.8.4                                ...           12 years ago
  • 0.8.3                                ...           12 years ago
  • 0.8.2                                ...           12 years ago
  • 0.8.1                                ...           12 years ago
  • 0.8.0                                ...           12 years ago
  • 0.7.2                                ...           12 years ago
  • 0.7.1                                ...           12 years ago
  • 0.7.0                                ...           12 years ago
  • 0.6.18                                ...           13 years ago
  • 0.6.17                                ...           13 years ago
  • 0.6.16                                ...           13 years ago
  • 0.6.15                                ...           13 years ago
  • 0.6.14                                ...           13 years ago
  • 0.6.13                                ...           13 years ago
  • 0.6.12                                ...           13 years ago
  • 0.6.11                                ...           13 years ago
  • 0.6.10                                ...           13 years ago
  • 0.6.9                                ...           13 years ago
  • 0.6.8                                ...           13 years ago
  • 0.6.7                                ...           13 years ago
  • 0.6.6                                ...           13 years ago
  • 0.6.5                                ...           13 years ago
  • 0.6.4                                ...           13 years ago
  • 0.6.3                                ...           13 years ago
  • 0.6.2                                ...           13 years ago
  • 0.6.1                                ...           13 years ago
  • 0.6.0                                ...           13 years ago
  • 0.5.8                                ...           13 years ago
  • 0.5.7                                ...           13 years ago
  • 0.5.6                                ...           13 years ago
  • 0.5.5                                ...           13 years ago
  • 0.5.4                                ...           13 years ago
  • 0.5.3                                ...           13 years ago
  • 0.5.2                                ...           13 years ago
  • 0.5.1                                ...           13 years ago
  • 0.5.0                                ...           13 years ago
  • 0.4.1                                ...           14 years ago
Maintainers (1)
Downloads
Total 5
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (4)
Dev Dependencies (2)

© 2010 - cnpmjs.org x YWFE | Home | YWFE