typeorm
Version:
Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.
15 lines (13 loc) • 662 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataTypeNotSupportedError = void 0;
const TypeORMError_1 = require("./TypeORMError");
class DataTypeNotSupportedError extends TypeORMError_1.TypeORMError {
constructor(column, dataType, database) {
super();
const type = typeof dataType === "string" ? dataType : dataType.name;
this.message = `Data type "${type}" in "${column.entityMetadata.targetName}.${column.propertyName}" is not supported by "${database}" database.`;
}
}
exports.DataTypeNotSupportedError = DataTypeNotSupportedError;
//# sourceMappingURL=DataTypeNotSupportedError.js.map
;