This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const mc = require('mongodb').MongoClient; | |
class MonCon { | |
// Takes all the neede vars to connect to a database | |
constructor(host_ip, host_port, db_url, db_name, db_collection) { | |
this.host_ip = host_ip; | |
this.host_port = host_port; | |
this.db_url = db_url; | |
this.db_name = db_name; | |
this.db_collection = db_collection; |
NewerOlder