A Clojure wrapper for the modern MongoDB Java driver.
[com.timezynk/mongo "0.10.2"]
com.timezynk/mongo {:mvn/version "0.10.2"}
implementation("com.timezynk:mongo:0.10.2")
<dependency>
<groupId>com.timezynk</groupId>
<artifactId>mongo</artifactId>
<version>0.10.2</version>
</dependency>
You need MongoDB version 4.4 or later installed.
Create a database folder:
mkdir mongodb
Start a server:
mongod --replSet rs0 --dbpath ./mongodb --port 27017
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 })"
Start testing.
Can you improve this documentation? These fine people already did:
Lars & lars-timezynkEdit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close