2019-11-14 02:01:38 +00:00
|
|
|
# mongo-driver-3
|
|
|
|
|
|
2019-11-14 03:40:39 +00:00
|
|
|
[](https://clojars.org/mongo-driver-3)
|
|
|
|
|
|
2019-11-14 02:01:38 +00:00
|
|
|
A Mongo client for clojure, lightly wrapping 3.11+ versions of the [MongoDB Java Driver](https://mongodb.github.io/mongo-java-driver/)
|
|
|
|
|
|
|
|
|
|
In general, it will feel familiar to users of mongo clients like [monger](https://github.com/michaelklishin/monger).
|
|
|
|
|
Like our HTTP/2 client [hato](https://github.com/gnarroway/hato), the API is designed to be idiomatic and to make common
|
|
|
|
|
tasks convenient, whilst still allowing the underlying client to be configured via native Java objects.
|
|
|
|
|
|
|
|
|
|
It was developed with the following goals:
|
|
|
|
|
|
|
|
|
|
- Up to date with the latest driver versions
|
|
|
|
|
- Minimal layer that doesn't block any functionality
|
|
|
|
|
- Consistent API across all functions
|
|
|
|
|
- Configuration over macros
|
|
|
|
|
- Simple
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Status
|
|
|
|
|
|
2019-11-14 12:09:01 +00:00
|
|
|
mongo-driver-3 is under active development and the API may change.
|
2019-11-14 02:01:38 +00:00
|
|
|
Please try it out and raise any issues you may find.
|
|
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
|
|
|
|
|
For Leinengen, add this to your project.clj:
|
|
|
|
|
|
|
|
|
|
```clojure
|
|
|
|
|
;; The underlying driver -- any newer version can also be used
|
2019-11-15 00:53:13 +00:00
|
|
|
[org.mongodb/mongodb-driver-sync "3.11.2"]
|
2019-11-14 02:01:38 +00:00
|
|
|
|
|
|
|
|
;; This wrapper library
|
2019-11-15 00:53:13 +00:00
|
|
|
[mongo-driver-3 "0.3.0"]
|
2019-11-14 02:01:38 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## License
|
|
|
|
|
|
|
|
|
|
Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
|