UNPKG

1.1 kBJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when user tries to build SELECT query using OFFSET without LIMIT applied but database does not support it.
6*/
7var OffsetWithoutLimitNotSupportedError = /** @class */ (function (_super) {
8 tslib_1.__extends(OffsetWithoutLimitNotSupportedError, _super);
9 function OffsetWithoutLimitNotSupportedError(driverName) {
10 var _this = _super.call(this) || this;
11 _this.name = "OffsetWithoutLimitNotSupportedError";
12 Object.setPrototypeOf(_this, OffsetWithoutLimitNotSupportedError.prototype);
13 _this.message = driverName + " does not support OFFSET without LIMIT in SELECT statements. You must use limit in conjunction with offset function (or take in conjunction with skip function if you are using pagination).";
14 return _this;
15 }
16 return OffsetWithoutLimitNotSupportedError;
17}(Error));
18exports.OffsetWithoutLimitNotSupportedError = OffsetWithoutLimitNotSupportedError;
19
20//# sourceMappingURL=OffsetWithoutLimitNotSupportedError.js.map