Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Clojure wrapper for the mongo-db java api
branch: new

This branch is even with aboekhoff:new

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
classes/somnium/congomongo
lib
src/somnium
test
.gitignore
build.xml
congomongo.jar
readme.markdown

readme.markdown

CongoMongo

New Branch

Experimental features based on Clojure New branch and convenience macros.

New Fetch

A few less keystrokes now

(fetch :things
       where [:x     < 5
                     > 10
              :y     in [1 2 3 4]
              :z.bar #".*quux.*"]
       only  [:x :y]
       limit 20)

This macro calls the function '*fetch with a map as its only argument, so it is still available as a first-class function if needed.

Insert! can now accept seqs so mass-insert is gone

(insert! :things
         (for [x (range 1e6)] {:x x}))

Protcols are in use under the hood for coercions

and should enhance performance.

CongoMongo is a work in progress. If you've used, improved, or abused it I'd love to hear about it. Contact me at somnium@gmx.us

Something went wrong with that request. Please try again.