Created
June 19, 2019 20:58
-
-
Save koras/7b1e0cd67c826669b60b1bc09f70f243 to your computer and use it in GitHub Desktop.
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
module.exports.noSql = { | |
dbo: null, | |
connectionDB: function () { | |
if(!this.dbo){ | |
this.dbo = db.db("mydb"); | |
} | |
}, | |
setDB: function (param) { | |
this.connectionDB(); | |
// here we set the values | |
}, | |
getDB: function (param) { | |
this.connectionDB(); | |
// here we get the values | |
}, | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment