GitXplorerGitXplorer
l

mongo_connector

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
a0760a271636452d3826d939eb53cb9fb738f15f

Add Travis build image to README

llucaswilric committed 12 years ago
Unverified
d68f367199389ef7a5fc692f40f7447ebe9e7748

Add Rake to Gemfile

llucaswilric committed 12 years ago
Unverified
1161c70985a52be767e7a1707523e1f13f0c24d9

Build with Travis

llucaswilric committed 12 years ago
Unverified
a3288bf787fca886f917c4a50fa9f8938d81afe5

Document rename to mongo_connector

llucaswilric committed 12 years ago
Unverified
588a26b9fc624c2aa987d74b6b5642f85ec83784

Add specs. File rename to mongo_connector.

llucaswilric committed 12 years ago
Unverified
4273390c35fdcde35c6fe0d8ca34aa6d7386a915

Ignore *.gem

llucaswilric committed 12 years ago

README

The README file for this repository.

Mongo Connector

A simple gem for connecting to Mongo databases.

Build Status

The Mongo Connector takes the URI you give it and connects to the database the URI describes. If the URI is blank, MHQC will try to connect to a database you name on a local Mongo instance.

Usage

Gemfile:

gem 'mongo_connector'

Shell:

gem install mongo_connector

Code:

require 'mongo_connector'

db = MongoConnector.new(ENV['MONGOHQ_URL'], 'my_database').connection

collection = db['my_collection']