Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

updates README

  • Loading branch information...
commit 83b37ddcf0aa27ed77a36e0fbaeb1939cddd0844 1 parent 13a0081
@videlalvaro authored
Showing with 7 additions and 5 deletions.
  1. +7 −5 README.md
View
12 README.md
@@ -28,20 +28,22 @@ Then on your code you can use it this way:
```clojure
(ns my.namespace
- (use: [claude.core :as cf]
- [langohr.core :as lhc]
- [monger.core :as mg]))
+ (require: [claude.core :as cf]
+ [claude.mongodb :as cfm]
+ [claude.rabbitmq :as cfr]
+ [langohr.core :as lhc]
+ [monger.core :as mg]))
(defonce default-url "mongodb://127.0.0.1/mydb")
(defn mongo-connect []
(if (cf/cloudfoundry?)
- (mg/connect-via-uri! (cf/mongo-url))
+ (mg/connect-via-uri! (cfm/url))
(mg/connect-via-uri! default-url)))
(defn rabbitmq-connect []
(if (cf/cloudfoundry?)
- (lhc/connect (lhc/settings-from (cf/rabbit-url)))
+ (lhc/connect (lhc/settings-from (cfr/url)))
(lhc/connect)))
(defonce ^Connection conn (rabbitmq-connect))
Please sign in to comment.
Something went wrong with that request. Please try again.