This package has been deprecated

Author message:

Abandoned in favour of mysql2/promise

mysql-promisified

0.0.4 • Public • Published

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');

Readme

Keywords

Package Sidebar

Install

npm i mysql-promisified

Weekly Downloads

1

Version

0.0.4

License

Zlib

Unpacked Size

14.5 kB

Total Files

6

Last publish

Collaborators

  • aritz-cracker