awesome-rtk
Version:
Awesome Raphael's Tool kit
12 lines • 430 B
JavaScript
;
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