PlanetScale
Connect Cased to PlanetScale to manage your databases, branches, and deploy requests
PlanetScale
PlanetScale is a database-as-a-service platform that provides branching for databases. Cased integrates with PlanetScale to help you manage databases, monitor deploy requests, and track schema changes.
Available Actions
With PlanetScale connected, Cased agents can:
- Database Management: List databases, get database details, and monitor database health
- Branch Operations: List branches, get branch details, and track branch readiness
- Schema Monitoring: Retrieve database schemas and track schema changes
- Deploy Requests: Monitor deploy requests, check deploy queues, and track deployment status
- Backup Management: List and monitor database backups
- Connection Testing: Verify PlanetScale connection status
Setup
For PlanetScale, we need a service token ID and a service token. These are straightforward to add. Make sure to pay attention to the scopes when you create the tokens.
Generate Service Tokens
- Click on the settings icon next to your organization name
- Click on “Service Tokens” in the left-hand menu
- Click on the “New token” button
- Make sure to grant the service token the Read permission for the organization and database you want to use it with
- After creation, you will be presented with a SERVICE_TOKEN_ID and a SERVICE_TOKEN
Important Security Note
For security reasons, the service token is only shown once and cannot be retrieved later. If you lose your service token, you will need to create a new one.
Connect to Cased
- Go to app.cased.com/connections/planetscale
- Enter your PlanetScale SERVICE_TOKEN_ID and SERVICE_TOKEN
- Cased agent will start using the PlanetScale connection.