oracle-procedure
Version:
Pacote responsável por padronizar a chamada de procedure com o typeorm e o oracledb
26 lines • 859 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.BindIn = void 0;
const oracledb = require("oracledb");
function BindIn(type = "string") {
return function (target, key) {
Object.defineProperty(target, key, {
get() {
return this.inputs[key];
},
set(value) {
this.inputs[key] = {
dir: oracledb.BIND_IN,
val: value !== null && value !== void 0 ? value : null,
type: oracledb[type.toUpperCase()],
};
if (!this.orderedParameters.includes(key))
this.orderedParameters.push(key);
},
enumerable: true,
configurable: true,
});
};
}
exports.BindIn = BindIn;
//# sourceMappingURL=bind-in.js.map
;