node-query/src/adapters/mysql2.js

18 lines
495 B
JavaScript
Raw Normal View History

2014-10-23 10:53:16 -04:00
'use strict';
import Adapter from '../Adapter';
2014-10-23 10:53:16 -04:00
/** @module adapters/mysql2 */
module.exports = class mysql2 extends Adapter {
2014-10-23 10:53:16 -04:00
/**
* Run the sql query as a prepared statement
*
* @param {String} sql - The sql with placeholders
* @param {Array} params - The values to insert into the query
* @param {Function} callback - Callback to run when a response is recieved
* @return void
*/
execute(sql, params, callback) {
this.instance.execute.apply(this.instance, arguments);
};
}