Ruby
This page documents the preview version (v2.23). Preview includes features under active development and is for development and testing only. For production, use the stable version (v2024.1). To learn more, see Versioning.
Supported projects
The following projects are recommended for implementing Ruby applications using the YugabyteDB YSQL/YCQL API.
Driver | Documentation and Guides |
---|---|
Pg Gem Driver | Documentation |
YugabyteDB Ruby Driver for YCQL | Documentation Sample apps |
Projects | Documentation and Guides |
---|---|
Active Record ORM | Documentation Sample apps |
Learn how to establish a connection to a YugabyteDB database and begin basic CRUD operations by referring to Connect an app or Use an ORM.
Prerequisites
To develop Ruby applications for YugabyteDB, you need the following:
-
Ruby
- Install Ruby 2.7.0 or later. Verify the ruby version using
ruby -v
.
- Install Ruby 2.7.0 or later. Verify the ruby version using
-
YugabyteDB cluster
- Create a free cluster on YugabyteDB Aeon. Refer to Use a cloud cluster. Note that YugabyteDB Aeon requires SSL.
- Alternatively, set up a standalone YugabyteDB cluster by following the steps in Install YugabyteDB.