Source: drivers/mysql.js

"use strict";

/**
 * Driver for MySQL databases
 *
 * @module drivers/mysql
 */
module.exports = (function() {

	var driver = require('../driver'),
		helpers = require('../helpers');

	driver.identifierChar = '`';

	/**
	 * Override default limit method because mysql likes to be different
	 */
	driver.limit = function(sql, limit, offset) {
		if ( ! helpers.isNumber(offset))
		{
			return sql += " LIMIT " + limit;
		}

		return sql += " LIMIT " + offset + "," + limit;
	};

	return driver;

}());
DocStrap Copyright © 2012-2014 The contributors to the JSDoc3 and DocStrap projects.
Documentation generated by JSDoc 3.3.0-alpha9 on Thu Oct 23rd 2014 using the DocStrap template.