Should be use-db! here

This commit is contained in:
Michael Klishin 2013-02-28 16:46:15 +04:00
parent 62013fd070
commit 43e40f5f14

View file

@ -8,7 +8,7 @@ on the default database:
``` clojure
(let [username "myservice"
pwd "LGo5h#B`cTRQ>28tba6u"]
(monger.core/set-db! "mydb")
(monger.core/use-db! "mydb")
;; authenticates requests for mydb
(monger.core/authenticate username (.toCharArray pwd)))
```