Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/titarenko/sqlcut-pg


https://github.com/titarenko/sqlcut-pg

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# sqlcut-pg

PostgreSQL API adapter for [sqlcut](https://github.com/titarenko/sqlcut) module.

# API

"Promises" means "returns promise".

## query(sql, paramsArray)

Promises array of results.

```js
var sqlcut = require('sqlcut');
var db = sqlcut('sqlcut-pg', connectionParameters);

db.query('select * from products where name = ?', ['beer']).then(console.log);
```

# License

BSD