0.0.4 • Published 5 years ago

mysql-promisified v0.0.4

Weekly downloads
1
License
Zlib
Repository
github
Last release
5 years ago

mysql-promisified

It's literally just mysql with promise wrappers, so take a look at their docs. If the original callback has multiple arguments, an array will be returned.

So for example, you can do this with queries.

const mysql      = require('mysql-promisified');
const connection = mysql.createConnection(...);

const [results, fields] = await connection.query('SELECT 1');