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

/mysql-promisified/

    Package Sidebar

    Install

    npm i mysql-promisified

    Weekly Downloads

    0

    Version

    0.0.4

    License

    Zlib

    Unpacked Size

    14.5 kB

    Total Files

    6

    Last publish

    Collaborators

    • aritz-cracker