Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/baumandm/monglorious

Query MongoDB with Strings
https://github.com/baumandm/monglorious

clojure mongodb parsing

Last synced: about 2 months ago
JSON representation

Query MongoDB with Strings

Awesome Lists containing this project

README

        

# Monglorious!

Monglorious is a MongoDB client library which
accepts textual queries in the syntax of the MongoDB shell.

Monglorious is written in Clojure. A Java wrapper is available; see below.

[![Build Status](https://travis-ci.org/baumandm/monglorious.svg?branch=master)](https://travis-ci.org/baumandm/monglorious) [![Dependencies Status](https://jarkeeper.com/baumandm/monglorious/status.svg)](https://jarkeeper.com/baumandm/monglorious)

## Examples

(execute "mongodb://localhost:27017/testdb" "db.documents.count()")
=> 9

(execute "mongodb://localhost:27017/testdb" "db.documents.find({ name: 'Alan' })")
=> ({:_id #object[org.bson.types.ObjectId 0x7acd5871 "5815c9d9b160550f0eab8868"], :name "Alan", :age 27, :score 17772})

## Installation

Add the following dependency to your project.clj file:

[![](https://clojars.org/monglorious/latest-version.svg)](https://clojars.org/monglorious)

## Java Library

[Monglorious-java](https://github.com/baumandm/monglorious-java) provides an idiomatic Java wrapper for Monglorious.

## Development

### Running Tests

Run all the tests with [Midje](https://github.com/marick/Midje/wiki/Running-midje):

lein midje

Add :autotest to watch for changes and re-run tests as the source changes.

lein midje :autotest

### Building API Documentation

[Codox](https://github.com/weavejester/codox) is used to generate API documentation for Monglorious.

lein codox

This generates files in `target/base+system+user+dev/doc`. Copy these files over to the `gh-pages` branch.

## License

Copyright © 2016-2017 Dave Bauman

Distributed under the Eclipse Public License, the same as Clojure.