Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/titarenko/qpg

Q-style PG (https://github.com/kriskowal/q, https://github.com/brianc/node-postgres)
https://github.com/titarenko/qpg

Last synced: about 1 month ago
JSON representation

Q-style PG (https://github.com/kriskowal/q, https://github.com/brianc/node-postgres)

Awesome Lists containing this project

README

        

# QPG

[Q](https://github.com/kriskowal/q)-style [PG](https://github.com/brianc/node-postgres)

## Installation

```
npm install qpg --save
```

## Usage

```js
var qpg = require('qpg');
qpg.url = 'postgres://user:password@server/db';
qpg.query('select * from information_schema.tables').then(function(rows) {
// do something with rows
}).catch(function(error) {
// do something with error
});
```

## License

MIT