Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/titarenko/sqlcut-mysql
https://github.com/titarenko/sqlcut-mysql
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/titarenko/sqlcut-mysql
- Owner: titarenko
- Created: 2014-06-24T12:27:09.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-06-24T20:22:57.000Z (over 10 years ago)
- Last Synced: 2024-04-25T05:21:28.018Z (9 months ago)
- Language: JavaScript
- Size: 121 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sqlcut-mysql
MySQL 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-mysql', connectionParameters);db.query('select * from products where name = ?', ['beer']).then(console.log);
```# License
BSD