mirror of
https://github.com/journey-ad/Moe-Counter.git
synced 2024-11-30 18:24:28 +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 |