1
0
mirror of https://github.com/journey-ad/Moe-Counter.git synced 2024-11-30 18:24:28 +01:00
Moe-Counter/db/index.js

15 lines
200 B
JavaScript

'use strict'
let db
switch(process.env.DB_TYPE){
case 'mongodb':
db = require('./mongodb')
break;
case 'sqlite':
default:
db = require('./sqlite')
break;
}
module.exports = db