Skip to content

Added a Database manager class (scraper/Database)#142

Merged
omrih4 merged 2 commits into
LegitiDevs:masterfrom
ThisIsMyName314:branch2
May 22, 2026
Merged

Added a Database manager class (scraper/Database)#142
omrih4 merged 2 commits into
LegitiDevs:masterfrom
ThisIsMyName314:branch2

Conversation

@ThisIsMyName314
Copy link
Copy Markdown
Contributor

It centralises control of the collections and the database which prevents requiring extra code in all the classes that use it

private MongoCollection<Ban> bans;

private Database() {
initialize();
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not do all this in the constructor

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah that would make more sense, I'll change it

@omrih4 omrih4 merged commit 755b838 into LegitiDevs:master May 22, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants