Databases
Read, create and update a managed database, and track its state as it changes.
A managed Postgres, MySQL, MariaDB, MongoDB, Redis or ClickHouse instance, provisioned and versioned the same way an app is.
Queries
databaseslists them, and takes an optionalqsearch argument that keeps only the ones whose name, slug or id contains it.database(id)reads one.databaseRuntime(databaseId)reads its live runtime state (image, ports, resource usage).
search(q) is not scoped to the active team
Same behavior as apps, see Apps.
Mutations
createDatabaseprovisions a new instance.updateDatabasechanges its settings (name, version, and the fields that do not require a rebuild).
Subscriptions
databaseStatus(id) is a Server-Sent Events stream: it emits the entity on
every state change, an initial snapshot then live updates, so a client
tracks provisioning, start, stop and redeploy with no polling.
See also
Did this page help you?