Easymongo
Super easy MongoDB Ruby client. This is the way mongo should be.
If you need something closer to pure Mongo, have a look at Minimongo.
We also have Mongocore if you're looking for a full ORM.
Installation
gem install easymongo
or add to Gemfile.
Usage
# All commands supported
# https://docs.mongodb.com/ruby-driver/master/quick-start
# Connect
$db = Easymongo::Query.new(['127.0.0.1:27017'], :database => "easymongo_#{ENV['RACK_ENV']}")
# First
$db.collection.get.first
# Last
$db.collection.get.last
# All
$db.collection.get.all
# Insert / Update
$db.collection.set(:name => name)
# Delete
$db.domains.delete(id)
Created and maintained by Fugroup Ltd. We are the creators of CrowdfundHQ.
@authors: Vidar