Attempt to resurrect qomet code - need some rewrite
[qomet.git] / utils / database.js
1 const mongojs = require("mongojs");
2 const params = require("../config/parameters");
3
4 const connectionString =
5 params.db.user + ":" + params.db.password + "@" + params.db.host + ":" + params.db.port + "/" + params.db.name
6
7 const db = mongojs(connectionString);
8
9 module.exports = db;