You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue/9/insert cmodels in database
This PR was initially opened to address issue #9. However The issue was indirectly related to these other issues that will also be closed.
closes#9closes#23closes#10closes#21
We already implemented the singleton but there are a lot of bad comments on this practice, even when using it for DB connections. The best alternative is just creating one instance of the db connection and pass it to all parts of code that need it.
The code will be easy to refactor given the current circumstances. We just get rid of the Singleton inheritance in MongoClientSingleton and rename some variables.
Connection to mongodb could be done by means of a singleton. Verify if this is needed, and implement the singleton if needed.
The text was updated successfully, but these errors were encountered: