typeorm
Version:
Data-Mapper ORM for TypeScript and ES2021+. Supports MySQL/MariaDB, PostgreSQL, MS SQL Server, Oracle, SAP HANA, SQLite, MongoDB databases.
20 lines (18 loc) • 1.03 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.ColumnTypeUndefinedError = void 0;
const TypeORMError_1 = require("./TypeORMError");
/**
* Thrown when ORM cannot get column's type automatically.
* Basically, when reflect-metadata is not available or tsconfig is not properly setup.
*/
class ColumnTypeUndefinedError extends TypeORMError_1.TypeORMError {
constructor(object, propertyName) {
super(`Column type for ${object.constructor.name}#${propertyName} is not defined and cannot be guessed. ` +
`Make sure you have turned on an "emitDecoratorMetadata": true option in tsconfig.json. ` +
`Also make sure you have imported "reflect-metadata" on top of the main entry file in your application (before any entity imported).` +
`If you are using JavaScript instead of TypeScript you must explicitly provide a column type.`);
}
}
exports.ColumnTypeUndefinedError = ColumnTypeUndefinedError;
//# sourceMappingURL=ColumnTypeUndefinedError.js.map
;