Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Nov 25, 2010
1 parent f12ee75 commit 7971ee6
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Expand Up @@ -4,18 +4,27 @@ Hassium
Hassium is a MongoDB client library for the Clojure programming
language.

Install
-------

Add the following dependency to your project.clj file:

[hassium "0.2.0"]

Example
-------

(use 'hassium.core)

(def db
(database "demo"))

(def people
(collection db "people")
(collection db "people"))

(insert people {:name "Alice"}
{:name "Bob"}
{:name "Carol"})

(doseq [person @(find-all people)]
(println (:name person))))
(println (:name person)))

0 comments on commit 7971ee6

Please sign in to comment.