@iamthes/query-builder
Version:
Builds sql query for RDBMS
20 lines • 717 B
JavaScript
;
var __extends = (this && this.__extends) || function (d, b) {
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
var sql_1 = require("./sql");
var MySql = (function (_super) {
__extends(MySql, _super);
function MySql() {
_super.call(this);
}
MySql.prototype.getLimit = function (sql, limit, offset) {
sql += (offset !== undefined) ? "limit " + offset + ", " + limit : "limit " + limit;
return sql;
};
return MySql;
}(sql_1.default));
module.exports = MySql;
//# sourceMappingURL=mysql.js.map