Registry / database / mongodb-mongo

mongodb-mongo

JSON →
library0.14.1rbrubygemsunverified

A Ruby driver for the 10gen Mongo DB.

gem install mongodb-mongo
INSTALL
IMPORT
SIG · MONGODB-MONGO
M
mongodb-mongo
databaserubyv0.14.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Mongo
require 'mongo'

Connect to MongoDB and insert a document.

require 'mongo' client = Mongo::Client.new('mongodb://localhost:27017/test') db = client.database collection = db[:users] collection.insert_one({ name: 'Alice' })
Debug
Known issues
breakingThis gem is outdated; consider using the official 'mongo' gem (version 2.x+) which has a different API.
fix
Replace with the 'mongo' gem (version >= 2.0) and update your code to use the new driver API.
affects: < 2.0
Upgrade
Version history
0.14.1latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
7 hits · last 30 days
node
6
Resources
mongodb-mongo — gem install mongodb-mongo · libregistry