Skip to content

Latest commit

 

History

History
47 lines (27 loc) · 1.42 KB

README.md

File metadata and controls

47 lines (27 loc) · 1.42 KB

Monglorious-java

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.

Examples

try (MongloriousClient monglorious = new MongloriousClient("mongodb://localhost:27017/testdb")) {
    long actual = monglorious.execute("db.documents.count()", Long.class);
}

Installation

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.

Development

Monglorious Dependency

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.

Running Tests

Tests are written in JUnit and can be run via Gradle:

gradle test

Building Uberjar

The Shadow plugin can build an uberjar of this project:

gradle shadow

License

Copyright © 2016 Dave Bauman

Distributed under the Eclipse Public License.