turbot/planetscale

GitHub
steampipe plugin install planetscalesteampipe plugin install planetscale

Table: planetscale_database_branch

List database branches in your account.

Examples

List all branches for all databases

select
*
from
planetscale_database_branch

List branches for a specific database

select
*
from
planetscale_database_branch
where
database_name = 'test'

Branches derived from the main branch

select
*
from
planetscale_database_branch
where
database_name = 'test'
and parent_branch = 'main'

.inspect planetscale_database_branch

Database Branches in the PlanetScale account.

NameTypeDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
access_host_urltextHost name to access the database.
created_attimestamp with time zoneWhen the branch was created.
database_nametextName of the database.
nametextName of the branch.
organization_nametextName of the organization.
parent_branchtextParent of this branch.
productionbooleanTrue if this branch is in production.
readybooleanTrue if the branch is ready.
region_slugtextRegion where the database is located.
updated_attimestamp with time zoneWhen the branch was updated.