dependency update

This commit is contained in:
George Narroway 2022-10-04 19:24:03 +08:00
parent 46ca9d63df
commit c46e114f44
3 changed files with 5 additions and 5 deletions

View file

@ -32,7 +32,7 @@ For Leinengen, add this to your project.clj:
```clojure
;; The underlying driver -- any newer version can also be used
[org.mongodb/mongodb-driver-sync "4.2.3"]
[org.mongodb/mongodb-driver-sync "4.7.1"]
;; This wrapper library
[mongo-driver-3 "0.7.0"]

View file

@ -1,4 +1,4 @@
(defproject mongo-driver-3 "0.7.0"
(defproject mongo-driver-3 "0.7.0-SNAPSHOT"
:description "A Clojure wrapper for the Java MongoDB driver 3.11/4.0+."
:url "https://github.com/gnarroway/mongo-driver-3"
:license {:name "The MIT License"
@ -11,4 +11,4 @@
:plugins [[lein-cljfmt "0.6.4"]]
:profiles {:dev {:dependencies [[org.clojure/clojure "1.11.1"]
[org.mongodb/mongodb-driver-sync "4.2.3"]]}})
[org.mongodb/mongodb-driver-sync "4.7.1"]]}})

View file

@ -212,7 +212,7 @@
(testing "replace one"
(is (instance? ReplaceOneModel (m/write-model [:replace-one {:filter {:a "b"} :replacement {:a "c"}}])))
(are [expected arg]
(= expected (.isUpsert (.getOptions (m/write-model [:replace-one {:filter {:a "b"} :replacement {:a "c"} :upsert? arg}]))))
(= expected (.isUpsert (.getReplaceOptions (m/write-model [:replace-one {:filter {:a "b"} :replacement {:a "c"} :upsert? arg}]))))
true true
false false
false nil))
@ -220,7 +220,7 @@
(testing "update many"
(is (instance? UpdateManyModel (m/write-model [:update-many {:filter {:a "b"} :update {"$set" {:a "c"}}}])))
(are [expected arg]
(= expected (.isUpsert (.getOptions (m/write-model [:update-many {:filter {:a "b"} :update {"$set" {:a "c"}} :upsert? arg}]))))
(= expected (.isUpsert (.getOptions ^UpdateManyModel (m/write-model [:update-many {:filter {:a "b"} :update {"$set" {:a "c"}} :upsert? arg}]))))
true true
false false
false nil))