# pgpromise

> Returns promises instead of using callbacks.

Latest version **0.1.1** (published 2014-03-01) · 0 weekly downloads

## Install

```sh
npm install pgpromise
pnpm add pgpromise
yarn add pgpromise
bun add pgpromise
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-03-01 |
| First published | 2014-03-01 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Victor J. Reventos |
| Maintainers | vjames19 |
| Keywords | pgpromise, promises, postgres, pg, promise |

## Links

- npm: https://www.npmjs.com/package/pgpromise
- Repository: https://github.com/vjames19/pgPromise
- Issues: https://github.com/vjames19/pgPromise/issues
- npm.io page: https://npm.io/package/pgpromise

## Dependencies (1)

- [q](https://npm.io/package/q.md) ~1.0.0

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 0.1.1 (latest) — 2014-03-01
- 0.1.0 — 2014-03-01

## README

# pgPromise [![Build Status](https://secure.travis-ci.org/vjames19/pgpromise.png?branch=master)](http://travis-ci.org/vjames19/pgpromise)

Returns promises instead of using callbacks.

## Getting Started
Install the module with: `npm install pgpromise`

```javascript
var pg = require('pg');
var PgPromise = require('pgpromise');

// use connection string or connection config object
var conString = "postgres://postgres:1234@localhost/postgres";
var db = new PgPromise(pg, conString);

// make promised queries.
db.connect().then(function(conn) {
  conn.client.queryP('SELECT * from table').then(function(result) {
    console.log(result.rows);
  });
});

```

## Documentation
_(Coming soon)_

## Examples
_(Coming soon)_

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History
_(Nothing yet)_

## License
Copyright (c) 2014 Victor J. Reventos. Licensed under the MIT license.

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