1
0
mirror of https://github.com/journey-ad/Moe-Counter.git synced 2025-01-08 04:21:38 +01:00
Moe-Counter/db/index.js

17 lines
233 B
JavaScript
Raw Normal View History

'use strict'
const config = require('config-yml')
let db
switch(config.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