1
0
mirror of https://github.com/journey-ad/Moe-Counter.git synced 2024-11-27 17:00:51 +01:00
Moe-Counter/db/index.js

15 lines
200 B
JavaScript
Raw Permalink Normal View History

'use strict'
let db
switch(process.env.DB_TYPE){
2020-08-12 12:10:17 +02:00
case 'mongodb':
db = require('./mongodb')
break;
case 'sqlite':
default:
db = require('./sqlite')
break;
}
module.exports = db