Skip to content
/ mongo Public

A clojure wrapper for the com.mongodb.client Java API.

License

Notifications You must be signed in to change notification settings

TimeZynk/mongo

Repository files navigation

TimeZynk/mongo Clojars Project

A Clojure wrapper for the modern MongoDB Java driver.

Releases and Dependency Information

Leiningen/Boot

[com.timezynk/mongo "0.11.0"]

Clojure CLI/deps.edn

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

Gradle

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

Maven

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

API

cljdoc.org

Testing

You need MongoDB version 5.0 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, create the replica set (this is only required once):

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

Change Log

CHANGELOG.md

About

A clojure wrapper for the com.mongodb.client Java API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •