Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

A simple dev-friendly connector gem for Mongo databases

Notifications You must be signed in to change notification settings

lucaswilric/mongo_connector

Repository files navigation

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']

About

A simple dev-friendly connector gem for Mongo databases

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages