@abaplint/runtime
Version:
Transpiler - Runtime
20 lines • 613 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Context = void 0;
class Context {
constructor() {
this.cursorCounter = 0;
this.cursors = {};
// DEFAULT and secondary database connections
this.databaseConnections = {};
this.RFCDestinations = {};
}
defaultDB() {
if (this.databaseConnections["DEFAULT"] === undefined) {
throw new Error("Runtime, database not initialized");
}
return this.databaseConnections["DEFAULT"];
}
}
exports.Context = Context;
//# sourceMappingURL=context.js.map