UNPKG

980 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3var tslib_1 = require("tslib");
4/**
5 * Thrown when user tries to build a query with RETURNING / OUTPUT statement,
6 * but used database does not support it.
7 */
8var ReturningStatementNotSupportedError = /** @class */ (function (_super) {
9 tslib_1.__extends(ReturningStatementNotSupportedError, _super);
10 function ReturningStatementNotSupportedError() {
11 var _this = _super.call(this) || this;
12 _this.name = "ReturningStatementNotSupportedError";
13 Object.setPrototypeOf(_this, ReturningStatementNotSupportedError.prototype);
14 _this.message = "OUTPUT or RETURNING clause only supported by Microsoft SQL Server or PostgreSQL databases.";
15 return _this;
16 }
17 return ReturningStatementNotSupportedError;
18}(Error));
19exports.ReturningStatementNotSupportedError = ReturningStatementNotSupportedError;
20
21//# sourceMappingURL=ReturningStatementNotSupportedError.js.map