Couchbase Ruby SDK 3.5

agent_scope = bucket.scope("tenant_agent_00")
users_collection = agent_scope.collection("users")
document = {"name" => "John Doe", "preferred_email" => "johndoe111@test123.test"}

result = users_collection.upsert("user-key", document)

The Couchbase Ruby SDK allows you to connect to a Couchbase database from Ruby. The Ruby SDK includes high-performance native Ruby extensions to handle communicating to the cluster over Couchbase’s binary protocols.

Use Your Database

How-to guides to help you start your development journey with Couchbase and the Ruby SDK.


Take a deep-dive into the SDK concept material and learn more about Couchbase.


Useful resources to help support your development experience with Couchbase and the Ruby SDK.