StatelyDB SDK for Ruby
This is the Ruby SDK for StatelyDB.
Getting started:
Disclaimer:
We're still in an invite-only preview mode - if you're interested, please reach out to preview@stately.cloud.
Begin by following our Getting Started Guide which will help you define, generate, and publish a DB schema so that it can be used.
Install the SDK
gem install statelydb
Usage:
Create an authenticated client, then import your item types from your generated schema module and use the client!
require_relative 'schema/stately'
def put_my_item
client = StatelyDB::Client.new(store_id: <my-store-id>)
item = StatelyDB::Types::MyItem.new(name: "Jane Doe")
put_result = client.put(item)
get_result = client.get(StatelyDB::KeyPath.with("name", "Jane Doe"))
puts put_result == get_result