relax-orm
Version:
ORM for OracleDB
15 lines • 642 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var key_constant_1 = require("./key.constant");
function addOption(target, propertyKey, optionKey, optionValue) {
var options = getOptions(target, propertyKey);
options[optionKey] = optionValue;
Reflect.defineMetadata(key_constant_1.OPTIONS_KEY, options, target, propertyKey);
}
exports.addOption = addOption;
function getOptions(target, propertyKey) {
var options = Reflect.getMetadata(key_constant_1.OPTIONS_KEY, target, propertyKey);
return options ? options : {};
}
exports.getOptions = getOptions;
//# sourceMappingURL=option.service.js.map