Monger 1.7.0 API documentation

Monger is a Clojure MongoDB client for a more civilized age: friendly, flexible and with batteries included

monger.cache

clojure.core.cache implementation(s) on top of MongoDB.
   
Related documentation guide: http://clojuremongodb.info/articles/integration.html

monger.collection

Provides key functionality for interaction with MongoDB: inserting, querying, updating and deleting documents, performing Aggregation Framework
queries, creating and dropping indexes, creating collections and more.

For more advanced read queries, see monger.query.

Related documentation guides:

* http://clojuremongodb.info/articles/getting_started.html
* http://clojuremongodb.info/articles/inserting.html
* http://clojuremongodb.info/articles/querying.html
* http://clojuremongodb.info/articles/updating.html
* http://clojuremongodb.info/articles/deleting.html
* http://clojuremongodb.info/articles/aggregation.html

monger.command

Provides convenience functions for performing most commonly used MongoDB commands.
For a lower-level API that gives maximum flexibility, see `monger.core/command`. To use
MongoDB 2.2 Aggregation Framework, see `monger.collection/aggregate`.

Related documentation guides:

* http://clojuremongodb.info/articles/commands.html
* http://clojuremongodb.info/articles/aggregation.html
* http://clojuremongodb.info/articles/mapreduce.html

monger.constraints

Public variables and functions:

    monger.conversion

    monger.core

    Thin idiomatic wrapper around MongoDB Java client. monger.core includes
    fundamental functions that perform database/replica set connection, set default write concern, default database, performing commands
    and so on. Most of the functionality is in other monger.* namespaces, in particular monger.collection, monger.query and monger.gridfs
    
    Related documentation guides:
    
    * http://clojuremongodb.info/articles/connecting.html
    * http://clojuremongodb.info/articles/commands.html
    * http://clojuremongodb.info/articles/gridfs.html

    monger.cursor

    Helper-functions for dbCursor object: 
    * to initialize new cursor, 
    * for CRUD functionality of options of dbCursor

    Public variables and functions:

    monger.db

    Functions that provide operations on databases
    

    Public variables and functions:

    monger.gridfs

    Provides functions and macros for working with GridFS: storing files in GridFS, streaming files from GridFS,
    finding stored files.
    
    Related documentation guide: http://clojuremongodb.info/articles/gridfs.html

    monger.joda-time

    An optional convenience namespaces for applications that heavily use dates and would prefer use JodaTime types
    transparently when storing and loading them from MongoDB and serializing to JSON and/or with Clojure reader.
    
    Enables automatic conversion of JodaTime date/time/instant instances to JDK dates (java.util.Date) when documents
    are serialized and the other way around when documents are loaded. Extends clojure.data.json/Write-JSON protocol for
    JodaTime types.
    
    To use it, make sure you add dependencies on clj-time (or JodaTime) and clojure.data.json.

    Public variables and functions:

      monger.js

      Kept for backwards compatibility. Please use clojurewerkz.support.js from now on.
      

      Public variables and functions:

      monger.json

      Provides clojure.data.json/Write-JSON protocol extension for MongoDB-specific types, such as
      org.bson.types.ObjectId

      Public variables and functions:

        monger.multi.collection

        Includes versions of key monger.collection functions that always take a database
        as explicit argument instead of relying on monger.core/*mongodb-database*.
        
        Use these functions when you need to work with multiple databases or manage database
        and connection lifecycle explicitly.

        monger.operators

        Provides vars that represent various MongoDB operators, for example, $gt or $in or $regex.
        They can be passed in queries as strings but using vars from this namespace makes the code
        a bit cleaner and closer to what you would see in a MongoDB shell query.
        
        Related documentation guide: http://clojuremongodb.info/articles/querying.html

        Public variables and functions:

          monger.query

          Provides an expressive Query DSL that is very close to that in the Mongo shell (within reason).
          This is the most flexible and recommended way to query with Monger. Queries can be composed, like in Korma.
          
          Related documentation guide: http://clojuremongodb.info/articles/querying.html

          Public variables and functions:

            monger.ragtime

            Ragtime integration
            

            Public variables and functions:

            monger.result

            Provides functions that determine if a query (or other database operation)
            was successful or not.
            
            Related documentation guides:
            
            * http://clojuremongodb.info/articles/inserting.html
            * http://clojuremongodb.info/articles/updating.html
            * http://clojuremongodb.info/articles/commands.html
            * http://clojuremongodb.info/articles/mapreduce.html

            Public variables and functions:

            monger.search

            Full text search queries support (MongoDB 2.4+)
            

            Public variables and functions:

            monger.util

            Provides various utility functions, primarily for working with document ids.
            

            Public variables and functions: