Database Queries

Database connectivity probe (REST API)

Changed on

Connectivity probe that runs a fixed SELECT 1 through pgproxy, using the same authentication, status/bandwidth gating, and metering as the other /query/* endpoints.

Unlike those endpoints, ping takes no request body and performs no table-name validation, so it works on any database — including a freshly provisioned, empty one. It is a real committed round-trip through pgproxy, so a 200 means the database is reachable and queryable. Used by the dashboard's database connection test.

Branch-targeted. Runs against the named branch instead of the parent database, using the branch's own credentials. The branch must be active and unexpired. Nothing about this request can reach the parent's data.

post/databases/{databaseName}/branches/{branchName}/query/ping

Request

  • Base URL
    https://api.volcano.dev
  • Auth
    HTTP bearer

Path parameters

databaseName, string required

Database name (unique within project, lowercase letters, numbers, and underscores only)

branchName, string required

Branch name (unique within the parent database, lowercase letters, numbers, and underscores only)

Response

Database is reachable

DatabaseQueryResult required

Rows returned by a data API request. RLS-filtered unless the request was made with a service key.

data, object[]

Result rows

count, integer

Number of rows returned

Changes

    • breaking

      added the new path request parameter branchName

    • breaking

      added the new path request parameter databaseName

    • breaking

      the response's body type changed from no type to object for status

    17 more changes in this revision