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

Connection object should be deleted to allow dropping of collection. #227

Open
egorchatsperasoft opened this issue Apr 5, 2022 · 0 comments

Comments

@egorchatsperasoft
Copy link

CONN = Connection(username="root", password="...")
DB = CONN["DB"]
DB.dropAllCollections()

doe snot really drop collection, until CONN object exists

if you write again

CONN = Connection(username="root", password="...")
DB = CONN["DB"]

you found them dropped

if you even write

CONN.resetConnection(username="root", password="...")
DB = CONN["DB"]

collection will survive.

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

No branches or pull requests

1 participant