This commit is contained in:
George Narroway 2019-11-17 14:06:57 +08:00
parent ea59047585
commit 431a18e8ba
2 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ You can also create a client and get a DB manually:
(def client (mcl/create "mongodb://localhost:27017")) (def client (mcl/create "mongodb://localhost:27017"))
;; Create a db that you can pass around. ;; Create a db that you can pass around.
(def db (mcl/get-db client "my-db:)) (def db (mcl/get-db client "my-db"))
``` ```
### Collection functions ### Collection functions
@ -100,7 +100,7 @@ As an example:
; => a MongoIterable ; => a MongoIterable
;; Find a single document or return nil ;; Find a single document or return nil
(mc/find-one db "test' {:v "world"} {:keywordize? false}) (mc/find-one db "test" {:v "world"} {:keywordize? false})
; => {"v" "world"} ; => {"v" "world"}
``` ```

View file

@ -1,4 +1,4 @@
(defproject mongo-driver-3 "0.3.1" (defproject mongo-driver-3 "0.3.2-SNAPSHOT"
:description "A Clojure wrapper for the Java MongoDB driver 3.11+." :description "A Clojure wrapper for the Java MongoDB driver 3.11+."
:url "https://github.com/gnarroway/mongo-driver-3" :url "https://github.com/gnarroway/mongo-driver-3"
:license {:name "The MIT License" :license {:name "The MIT License"