ArangoDB-Community / pyArango

Python Driver for ArangoDB with built-in validation
https://pyarango.readthedocs.io/en/latest/
Apache License 2.0
238 stars 90 forks source link

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

Open egorchatsperasoft opened 2 years ago

egorchatsperasoft commented 2 years ago
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.