UNPKG

awesome-rtk

Version:
12 lines 430 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DBConnection = void 0; const DB_1 = require("../DB"); const DBConnection = (config) => { const { engine, ...dbConfigs } = config; if (engine === 'mysql') return new DB_1.MySQLConnection(dbConfigs); return new DB_1.PostgresConnection(dbConfigs); }; exports.DBConnection = DBConnection; //# sourceMappingURL=DBConnection.js.map