Liking cljdoc? Tell your friends :D

TimeZynk/mongo Clojars Project

A Clojure wrapper for the modern MongoDB Java driver. Loosely based on somnium/congomongo.

Releases and Dependency Information

Leiningen/Boot

[com.timezynk/mongo "0.5.10"]

Clojure CLI/deps.edn

com.timezynk/mongo {:mvn/version "0.5.10"}

Gradle

implementation("com.timezynk:mongo:0.5.10")

Maven

<dependency>
  <groupId>com.timezynk</groupId>
  <artifactId>mongo</artifactId>
  <version>0.5.10</version>
</dependency>

API

cljdoc.org

Testing

You need MongoDB version 4.4 or later installed.

  1. Create a database folder:

    mkdir mongodb

  2. Start a server:

    mongod --replSet rs0 --dbpath ./mongodb --port 27017

  3. In a new terminal window, start the replica set:

    mongo --eval "rs.initiate({ \"_id\": \"rs0\", members: [{ \"_id\": 0, host: \"localhost:27017\" }]}, { force: true })"
    
  4. Start testing.

Change Log

CHANGELOG.md

Can you improve this documentation? These fine people already did:
Lars & lars-timezynk
Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close