UNPKG

isatdatapro-microservices

Version:

A library for creating microservices to access Inmarsat's IsatData Pro satellite IoT system

17 lines (12 loc) 355 B
'use strict'; require('dotenv').config(); let repository; const dbType = process.env.DB_TYPE; if (dbType == 'azureCosmos') { repository = require('./azureCosmosRepository'); } else if (dbType == 'mysql') { repository = require('./mysqlRepository'); } else { throw new Error(`Unsupported Database Type ${dbType}`); } module.exports = repository;