Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/baumandm/monglorious
- Owner: baumandm
- License: epl-1.0
- Created: 2016-10-22T17:39:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-10-23T04:28:56.000Z (over 6 years ago)
- Last Synced: 2024-11-28T12:29:29.445Z (about 2 months ago)
- Topics: clojure, mongodb, parsing
- Language: Clojure
- Homepage: https://baumandm.github.io/monglorious/
- Size: 587 KB
- Stars: 6
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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.