mirror of
https://github.com/journey-ad/Moe-Counter.git
synced 2024-11-27 17:00:51 +01:00
15 lines
200 B
JavaScript
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 |