octocore-cassandra
This is the Octomatic Enterprise Core gem. It provides most of the ORM stuff for Cassandra. Class and modules for different tables.
Installting
gem install octocore-cassandraIn case you are using bundler, you need to add something like this to your Gemfile:
gem 'octocore-cassandra', :git => 'git@github.com:octoai/gem-octocore-cassandra.git'DB Migrations
OctoAdmin CLI
This gem comes with a handy utility called octocore-admin-cassandra. You can use this utility for db migrations, reset and init.
$ octocore-admin-cassandra 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
Development
Clone the repo
$ git clone git@github.com:octoai/gem-octocore-cassandra.git
Building
$ ./bin/clean_setup.shSpecs
$ rake specVerifying connectivity
You 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-cassandra'
config_dir = '/path/to/config/dir'
Octo.connect_with_config_file config_dirCreating fake stream
It ships with a utility called fakestream. It will automatically stream random data. To use just open your console and type
$ fakestream-cassandra /path/to/config/dir