UNPKG

zents

Version:

ZenTS is a Node.js & TypeScript MVC-Framework for building rich web applications, released as free and open-source software under the MIT License. It is designed for building web applications with modern tools and design patterns.

23 lines 699 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DatabaseContainer = void 0; const enums_1 = require("../types/enums"); class DatabaseContainer { constructor(dbConnection, redisClient) { this.container = new Map(); if (dbConnection) { this.container.set(enums_1.DB_TYPE.ORM, dbConnection); } if (redisClient) { this.container.set(enums_1.DB_TYPE.REDIS, redisClient); } } get(type) { return this.container.get(type); } has(type) { return this.container.has(type); } } exports.DatabaseContainer = DatabaseContainer; //# sourceMappingURL=DatabaseContainer.js.map