Monger is an idiomatic Clojure MongoDB driver for a more civilized age. It has batteries included, offers powerful expressive query DSL, strives to support every MongoDB 2.0+ feature and has sane defaults. It also has solid documentation.
1.6.0 is a minor completely backwards-compatible release that makes it easier to use
Monger with multiple databases and MongoDB servers.
Changes between 1.5.0 and 1.6.0
monger.multi.collection is a new namespace with functions that are very similar to those
monger.collection namespace but always take a database reference as an explicit argument.
They are supposed to be used in cases when relying on
monger.core/*mongodb-database* is not
Erik Bakstad contributed most of this work.
MongoDB Java Driver Update
MongoDB Java driver dependency has been updated to 2.11.2.
monger.core/drop-db is a new function that drops a database by name.
One More Cache Implementation
monger.cache/db-aware-monger-cache-factory will return a MongoDB-backed
implementation that can use any database:
(require '[monger.core :as mg]) (require '[monger.cache :as cache]) (let [db (mg/get-db "altcache") coll "cache_entries" c (cache/db-aware-monger-cache-factory db coll)] (comment "This cache instance will use the altcache DB"))
monger.ragtime/applied-migration-ids now returns a vector (instead of a set) in order to preserve the original creation order of the migrations.
Ragtime dependency has been updated to 0.3.3.
Monger change log is available on GitHub.
Thank You, Contributors
Erik Bakstad contributed key features in this release.
Monger is a ClojureWerkz Project
- Langohr, a Clojure client for RabbitMQ that embraces the AMQP 0.9.1 model
- Cassaforte, a Clojure Cassandra client built around CQL
- Elastisch, a minimalistic Clojure client for ElasticSearch
- Welle, a Riak client with batteries included
- Neocons, a client for the Neo4J REST API
- Quartzite, a powerful scheduling library
and several others. If you like Monger, you may also like our other projects.