Planetscale
PlanetScale is a serverless MySQL database platform built on Vitess that provides scalable, highly available database infrastructure with unique branching and deployment capabilities similar to Git workflows. This data integration platform enables users to query and monitor various aspects of their PlanetScale databases, including database infrastructure, security configurations, backup systems, deployment workflows, and audit trails.
| Category | Database |
| Direction | Query source |
| Sign-in | Access Token |
| Query languages | SQLite |
| Tables | 10 |
| Query templates | 27 |
| Website | planetscale.com |
Before you start
Huntbase signs in to Planetscale with Access Token. Create the credential in Planetscale first, then keep it to hand for the Connect step.
- Install the PlanetScale CLI,
pscale. - Run
pscale auth loginand confirm the device in the browser window that opens. - Copy the access token from
~/.config/planetscale/access-token.
- Access tokens from
pscale auth loginare valid for one month, so you'll need to replace the token when it expires.
For the vendor's own instructions, see PlanetScale CLI authentication documentation.
Use a dedicated, read-only credential for Huntbase where the product allows it. Huntbase only needs to read.
Connect Planetscale
- Go to Connections and click New connection, or click New connection on the Planetscale product page.
- On Product, pick Planetscale and choose the Owner.
- On Details, give the connection a Name and, optionally, a Description.
- On Connect, fill in the settings and credentials described below.
- On Verify, review the summary and click Create & check.
For everything else on the setup page — saving a draft, I'll do this later, and what each check result means — see Connections.
Settings
Where your Planetscale lives:
| Field | Required | Notes |
|---|---|---|
| Organization Name | Yes | The name of the PlanetScale organization to query. |
Credentials
The only Method is Access Token. Enter a Credential label (for example Production), then fill in:
| Field | Required | Notes |
|---|---|---|
| Access Token | Yes | The access token from pscale auth login, which looks like pscale_oauth_.... Not a service token. Secret — not shown again after you save it. |
Query it
Once connected, Planetscale can serve these languages in a query tab, and Scout can use it when you ask in Auto:
| Language | Use it for |
|---|---|
| SQLite | SQL over the 10 tables listed below, alongside every other connected source. |
Example: SQLite
List all regions — Explore all the geographical regions in which the database service operates, to better understand its global distribution and reach.
select
*
from
planetscale_region;
Planetscale ships with 27 query templates. Find them in Library › Queries — see Query templates.
Tables
Planetscale adds 10 tables. Browse their columns from Schema in the query bar's ⋯ menu.
All 10 tables
| Table | Contains |
|---|---|
planetscale_audit_log | AuditLogs in the PlanetScale account. |
planetscale_backup | Database Branches in the PlanetScale account. |
planetscale_certificate | Database Branches in the PlanetScale account. |
planetscale_database | Databases in the PlanetScale account. |
planetscale_database_branch | Database Branches in the PlanetScale account. |
planetscale_deploy_request | Deploy Requests in the PlanetScale account. |
planetscale_organization | Organizations in the PlanetScale account. |
planetscale_password | Database Branches in the PlanetScale account. |
planetscale_region | Regions in the PlanetScale account. |
planetscale_service_token | Service tokens in the PlanetScale account. |
Next steps
- Connections — health, credentials and settings after you connect
- Query languages — syntax, parameters and time ranges
- Chatting with Scout — ask questions without writing a query
- All integrations — the rest of the catalog