Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ADD basic database structure #1

Merged
merged 7 commits into from
Sep 9, 2018
Merged

Conversation

Mxrk
Copy link
Contributor

@Mxrk Mxrk commented Sep 9, 2018

No description provided.

db/db.py Outdated

class db:

def __init__(self, ip="127.0.0.1", port=27017, dbname="pastepwn", collectionname="col"):
Copy link
Owner

Choose a reason for hiding this comment

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

The collection name should represent the data it contains. Something like "pastes" should be great.

db/db.py Outdated
@@ -0,0 +1,28 @@
import pymongo

class db:
Copy link
Owner

Choose a reason for hiding this comment

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

Class names should have an upper case first letter.
Also it would be great to write the name out ("Database")

@d-Rickyy-b d-Rickyy-b merged commit 7d3ee57 into d-Rickyy-b:master Sep 9, 2018
d-Rickyy-b pushed a commit that referenced this pull request Oct 1, 2018
d-Rickyy-b pushed a commit that referenced this pull request Oct 6, 2019
d-Rickyy-b pushed a commit that referenced this pull request Oct 6, 2019
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