Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mongodb-mongo-activerecord-ruby

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mongodb-mongo-activerecord-ruby

  • 0.0.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= Welcome to MongoRecord

MongoRecord is an ActiveRecord-like framework for the 10gen Mongo[http://www.mongodb.org/] database.

This document assumes you have read the Mongo documentation.

== Installation

$ gem sources -a http://gems.github.com $ sudo gem install mongodb-mongo-activerecord-ruby

MongoRecord depends on the Mongo Ruby Driver. Installing the MongoRecord gem will also install the Mongo Ruby Driver if you don't have it already.

The source code is available at http://github.com/mongodb/mongo-ruby-driver. You can either clone the git repository or download a tarball or zip file. Once you have the source, you can use it from wherever you downloaded it or you can install it as a gem from the source by typing

$ gem build mongo-activerecord-ruby.gemspec

ignore "WARNING: no rubyforge_project specified"

$ sudo gem install mongo-activerecord-ruby-X.Y.Z.gem

...where X.Y.Z is the gem version number. Remember that you need the Mongo gem, too.

== Getting Started

See the examples, read the MongoRecord::Base and MongoRecord::Cursor documentation, and look at tests/test_mongo.rb.

=== Persistence

You can use MongoRecord::Base or talk to the database (stored in the $db object) directly.

See MongoRecord::Base and MongoRecord::Cursor.

=== Logger

See MongoRecord::LogDevice. When running outside of the cloud (for example, during development), all log messages are echoed to $stderr which is normally the console.

== To Do

  • DBRefs

FAQs

Package last updated on 11 Aug 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc