Source: adapters/mysql2.js

'use strict';

var adapter = require('../lib/adapter.js');

/** @module adapters/mysql2 */
module.exports = function(instance) {

	/**
	 * 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
	 */
	adapter.execute = function(sql, params, callback) {
		instance.execute(sql, params, callback);
	};

	return adapter;
}
DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.3.0-alpha9 on Tue Oct 21st 2014 using the DocStrap template.