Batch SQL queries
https://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/sql/batch
This endpoint performs the SQL query across the entire database branch. Set your SQL query in the parameter `query`.
Expected parameters
Name | Description | In | Required | Schema |
---|---|---|---|---|
db_branch_name | The DBBranchName matches the pattern `{db_name}:{branch_name}`. | path | ✅ | string |
Batch SQL Queries
POSThttps://{your-workspace-slug}.{region}.xata.sh/db/db_branch_name/sql/batch
Run multiple SQL queries across the database branch.