michaelklishin / monger

Monger is an idiomatic Clojure MongoDB driver with sane defaults, batteries included, well documented, low overhead
http://clojuremongodb.info
484 stars 104 forks source link

Support for mongo 4.0 transactions #170

Open slipset opened 6 years ago

slipset commented 6 years ago

As written in https://www.mongodb.com/transactions/, mongodb will get support for transactions. Any plans on updating monger to support this?

mjrb commented 5 years ago

right now monger seems to be using the 3.6-beta2 version of the java mongodb driver. the latest version is 3.8.2 (oddly driver versions seem to differ slightly from server versions since the latest java driver is not 4.0). the biggest hurtle to get there is probably to upgrade the driver to latest or upgrade to the version when transactions first appeared.

I'm down to help add transactions support in monger.

mjrb commented 5 years ago

see #175 there is a workaround to get 3.8.x stuff which probably has transactions

olOwOlo commented 5 years ago

After some investigation, I found that transaction is supported by MongoCollection under the com.mongodb.client package.

Hi @michaelklishin , Is there a plan to support this? Shall we also need a client directory? Or a new module?