mongodb-haskell / mongodb

MongoDB driver for Haskell
http://hackage.haskell.org/package/mongoDB
Apache License 2.0
170 stars 44 forks source link

mongo 6: fix issue on collections with '.' #147

Closed pierreMizrahi closed 1 year ago

pierreMizrahi commented 1 year ago

Collection names are allowed to have a '.' in their name, db names aren't (see https://www.mongodb.com/docs/manual/reference/limits/#naming-restrictions)

This codes changes the logic to extract the collection name form a FullConnecton string by stripping until the first dot, and provides a test case.

Fixes #146

pierreMizrahi commented 1 year ago

@VictorDenisov can you please consider this PR ? thanks !

VictorDenisov commented 1 year ago

Yep. Give me a couple weeks.

pierreMizrahi commented 1 year ago

@VictorDenisov can you please take a quick look ?

VictorDenisov commented 1 year ago

I'm back. Will be reviewing PRs.