Ruby
Reference
Detailed reference for the Fortress Ruby SDK
Note: we handle connection caching for all of our SDKs.
Client
The Client
class is the main entry point for interacting with the Fortress platform. Here is a link to the Github
Initialization
Tenant Actions
Tenant actions are the main way used to interact with tenant data on the Fortress platform. This is the way to guarantee that data only comes from a specific tenant. Fortress will ensure tenant isolation using this method. Once a tenant is connected, all queries will only return that tenant’s data.
Connect to a tenant
Create a tenant in a database
- Important Note: if no database_id is provided, the tenant will be created in a new dedicated database.
- Important Note: The isolation level can be either ‘shared’ or ‘dedicated’
- Important Note: The platform can be either ‘aws’ or ‘managed’
List all tenants
Delete a tenant
- Important Note: Deleting a tenant using this will just remove the connection to the database but will not delete the data. We are working on this feature soon!
Database Actions
Database actions are used to interact with the entire database on the Fortress platform.
Create a database
- Important Note: The platform can be either ‘aws’ or ‘managed’
List all databases
Delete a database
- Important note: Deleting a database will delete all the data inside of it, but will not delete the tenant objects that are attached to it.