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