Monglorious is a MongoDB client library which accepts textual queries in the syntax of the MongoDB shell.
This is a Java wrapper of the Clojure library, aiming to provide an easy-to-use and idiomatic Java interface.
Versioning of Monglorious-java is decoupled from Monglorious to allow iterating on the Java-specific functionality. Generally it will use the latest version of Monglorious.
try (MongloriousClient monglorious = new MongloriousClient("mongodb://localhost:27017/testdb")) {
long actual = monglorious.execute("db.documents.count()", Long.class);
}
An Uberjar is attached to each Release on GitHub, e.g. monglorious-java-1.0.0-all.jar
.
Download and import into your project.
TODO: Upload to Maven Central.
The Monglorious library is included as a standalone uberjar in the lib/
folder.
This is an AOT'd version with Clojure bundled.
Replace this library with updated versions as needed.
Tests are written in JUnit and can be run via Gradle:
gradle test
The Shadow plugin can build an uberjar of this project:
gradle shadow
Copyright © 2016 Dave Bauman
Distributed under the Eclipse Public License.