node-mariasql
node-mariasql copied to clipboard
Promise Support?
As the title states: is there a plan for this library support promises anytime in the near future?
I'd be happy to submit a PR if this is something that you are interested in.
Thanks.
Why not just make this a mariadb driver for Sequelize (https://www.npmjs.com/package/sequelize)? They have all the promise support you need, it's a wonderful ORM and super secure after years and years of code updates.
It's easy to use promisify for this
const util = require('util')
const asyncQuery = util.promisify(c.query);
const rows = await asyncQuery.call(c, 'SELECT product FROM products WHERE id = :id', { id }, { useArray: false, metaData: false })