nestjs-transaction
Version:
A library that extracts and provides only some of the functions of the 'typeorm-transactional' npm module that are needed to operate in the Nestjs + TypeORM environment
12 lines • 393 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isDataSource = void 0;
const typeorm_1 = require("typeorm");
const isDataSource = (value) => {
if (!value || typeof value !== 'object') {
return false;
}
return value.constructor.name === typeorm_1.DataSource.name;
};
exports.isDataSource = isDataSource;
//# sourceMappingURL=index.js.map