Ruby SDK

Ruby Client Library for ReckDB services.

With this gem, you can:

  • stream your data to ReckDB databases.

Installation

Add this line to your application's Gemfile:

gem 'reckoner_cdp'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install reckoner_cdp

Usage

Initialization

Initialize a client to your ReckDB database:

require 'reckoner_cdp'
client = Reckoner::Cdp::Client.new(
'your_access_key_id',
'your_secret_access_key',
)

You can get your Access Key ID and Secret Access Key from Management page on WEB UI.

Stream Your Data to ReckDB Database

Stream Hash:

client.streaming_insert(
'database_name',
'table_name',
{bar: :bar5, foo: :foo5, lang: :ruby}
)

Stream Array:

client.streaming_bulk_insert(
'database_name',
'table_name',
[{bar: :bar1, foo: :foo1}, {bar: :bar2, foo: :foo2}]
)

Before streaming your data to ReckDB you need to create database and table which you stream your data to on ReckDB. you can create database and table from WEB UI.