py-tpcc icon indicating copy to clipboard operation
py-tpcc copied to clipboard

MongoDB API updated

Open antonis-papaioannou opened this issue 6 years ago • 1 comments

There is an error when trying to use mongodb driver: AttributeError: 'module' object has no attribute 'Connection'

You have to use MongoClient instead of Connection (pymongo changed api).

You have to change line 236 of file drivers/mongodbdriver.py to: self.conn = pymongo.MongoClient(config['host'], int(config['port']))

antonis-papaioannou avatar Dec 29 '18 16:12 antonis-papaioannou

Great! Can you send a PR?

apavlo avatar Dec 29 '18 16:12 apavlo