This is the Octomatic Enterprise Core gem for MongoDB. It provides most of the ORM stuff for MongoDB. Class and modules for different tables.
gem install octocore-mongoIn case you are using bundler, you need to add something like this to your Gemfile:
gem 'octocore-mongo', :git => 'git@github.com:octoai/gem-octocore-mongo.git'This gem comes with a handy utility called octocore-admin-mongo. You can use this utility for db migrations, reset and init.
$ octocore-admin-mongo action path/to/config/dirWhere
action: The action to be performed. One ofinit,migrateorreset/path/to/config/dir: The path where your config dir is placed
$ git clone git@github.com:octoai/gem-octocore-mongo.git
$ ./bin/clean_setup.sh$ rake specYou can use the following set of commands in irb to verify all things working with this gem. Execute it from irb in PROJ_DIR.
require 'octocore-mongo'
config_dir = '/path/to/config/dir'
Octo.connect_with_config_file config_dirIt ships with a utility called fakestream. It will automatically stream random data. To use just open your console and type
$ fakestream-mongo /path/to/config/dir