Skip to content

Java wrapper library for Monglorious, a MongoDB client that executes string queries.

License

Notifications You must be signed in to change notification settings

baumandm/monglorious-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Java wrapper library for Monglorious, a MongoDB client that executes string queries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages