1
0
mirror of https://github.com/journey-ad/Moe-Counter.git synced 2024-11-28 01:10:49 +01:00
Moe-Counter/db/index.js
2020-08-12 10:10:17 +00:00

17 lines
233 B
JavaScript

'use strict'
const config = require('config-yml')
let db
switch(config.db.type){
case 'mongodb':
db = require('./mongodb')
break;
case 'sqlite':
default:
db = require('./sqlite')
break;
}
module.exports = db