typeorm
Version:
Data-Mapper ORM for TypeScript, ES7, ES6, ES5. Supports MySQL, PostgreSQL, MariaDB, SQLite, MS SQL Server, Oracle, MongoDB databases.
17 lines (15 loc) • 826 B
JavaScript
import { __extends } from "tslib";
var PrimaryColumnCannotBeNullableError = /** @class */ (function (_super) {
__extends(PrimaryColumnCannotBeNullableError, _super);
function PrimaryColumnCannotBeNullableError(object, propertyName) {
var _this = _super.call(this) || this;
_this.name = "PrimaryColumnCannotBeNullableError";
Object.setPrototypeOf(_this, PrimaryColumnCannotBeNullableError.prototype);
_this.message = "Primary column " + object.constructor.name + "#" + propertyName + " cannot be nullable. " +
"Its not allowed for primary keys. Try to remove nullable option.";
return _this;
}
return PrimaryColumnCannotBeNullableError;
}(Error));
export { PrimaryColumnCannotBeNullableError };
//# sourceMappingURL=PrimaryColumnCannotBeNullableError.js.map