@iamthes/query-builder
Version:
Builds sql query for RDBMS
23 lines • 739 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 SQLite = (function (_super) {
__extends(SQLite, _super);
function SQLite() {
_super.call(this);
}
SQLite.prototype.getLimit = function (sql, limit, offset) {
sql += "limit " + limit;
if (offset) {
sql += " offset " + offset;
}
return sql;
};
return SQLite;
}(sql_1.default));
module.exports = SQLite;
//# sourceMappingURL=sqlite.js.map