# any-db-postgres

> The postgres adapter for any-db

Latest version **2.3.0** (published 2020-12-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install any-db-postgres
pnpm add any-db-postgres
yarn add any-db-postgres
bun add any-db-postgres
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.3.0 |
| Published | 2020-12-01 |
| First published | 2013-09-04 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 6 |
| Author | Stephen Sugden |
| Maintainers | grncdr |
| Keywords | any-db, anydb, postgres, pg, adapter |

## Links

- npm: https://www.npmjs.com/package/any-db-postgres
- Repository: https://github.com/grncdr/node-any-db-postgres
- Homepage: https://github.com/grncdr/node-any-db-postgres#readme
- Issues: https://github.com/grncdr/node-any-db-postgres/issues
- npm.io page: https://npm.io/package/any-db-postgres

## Dependencies (3)

- [pg](https://npm.io/package/pg.md) ^7.4.3
- [inherits](https://npm.io/package/inherits.md) ~2.0.1
- [pg-query-stream](https://npm.io/package/pg-query-stream.md) ~0.2.0

## Recent versions

- 2.3.0 (latest) — 2020-12-01
- 2.1.5 — 2017-02-24
- 2.1.4 — 2015-03-08
- 2.1.3 — 2014-07-13
- 2.1.2 — 2014-04-26
- 2.1.1 — 2013-12-26
- 2.1.0 — 2013-12-26
- 2.0.0 — 2013-12-25
- 1.0.2 — 2013-12-22
- 1.0.0 — 2013-11-06
- 1.0.0-rc2 — 2013-11-01
- 1.0.0-rc1 — 2013-10-17
- 1.0.0-alpha2 — 2013-09-18
- 1.0.0-alpha1 — 2013-09-08
- 0.0.0 — 2013-09-04

## README

# any-db-postgres

[![Build Status](https://secure.travis-ci.org/grncdr/node-any-db-postgres.png)](http://travis-ci.org/grncdr/node-any-db-postgres)

[![js-standard-style](https://raw.githubusercontent.com/feross/standard/master/badge.png)](https://github.com/feross/standard)

This is the postgres adapter for Any-DB. It relies on the [pg.js][] database
driver to create [Connection][] and [Query][] objects that conform to the
[Any-DB API][]. The API is practically identical to that of `require('pg')`
but allows your app code to be portable between databases.

## API extensions

The connections and queries this package creates inherit from [pg.Client][]
and [QueryStream][], so any methods described there are also available to you.

Keep in mind that these methods will _not_ necessarily work with other backends.

## Install

    npm install any-db-postgres

## License

MIT

[pg]: http://github.com/brianc/node-postgres
[pg.client]: https://github.com/brianc/node-postgres/wiki/Client
[querystream]: https://github.com/brianc/node-pg-query-stream
[connection]: https://github.com/grncdr/node-any-db-adapter-spec#connection
[query]: https://github.com/grncdr/node-any-db-adapter-spec#query
[any-db api]: https://github.com/grncdr/node-any-db-adapter-spec

---
_Source: https://npm.io/package/any-db-postgres · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
