Closed sweep-ai[bot] closed 3 months ago
This is an automated message generated by Sweep AI.
Hi there! :wave: Thanks for opening a PR. :tada: To get the most out of Senior Dev, please sign up in our Web App, connect your GitHub account, and add/join your organization devansh-shah-11. After that, you will receive code reviews beginning on your next opened PR. :rocket:
PR Feedback (click)
Description
This pull request migrates the database to MongoDB Atlas and creates interoperable functions. It also updates the README.md file with instructions on how to set up MongoDB Atlas for development.
Summary
use_cloud_db
to theDatabase
class constructor to determine whether to use the local MongoDB instance or MongoDB Atlas.uri
variable to the MongoDB Atlas connection string ifuse_cloud_db
is True.update_one
function to instantiate theDatabase
class with theuse_cloud_db
parameter.use_cloud_db
to theupdate_employees
function to determine whether to use the local MongoDB instance or MongoDB Atlas.update_result
variable to instantiate theDatabase
class with theuse_cloud_db
parameter.Fixes #9.
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: