Multi-region database

Serving regions
3
Regions that accept writes
3
No card required
$0
Statements per transaction
256

SQL databases in the regions you choose.

  • SQL tables, indexes and foreign keys

  • psql, HTTP and WebSocket connections

  • Every region you choose accepts reads and writes

    gru sjc fra
  • Filtered live shapes under database rules

  • Agent databases with TTL, forks and scoped keys

  • Database deletion destroys backup keys

From sign up to your first query
in three steps.

  1. Create a database

    Register without a card, create a project, and add a database in the regions you choose: São Paulo, the San Francisco Bay Area, or Frankfurt.

    gru sjc fra
  2. Create an API key

    Limit the key to the database. Use it as the Postgres password, or exchange it for an access token for HTTP and the SDKs.

  3. Run SQL

    Create tables and query them from psql, the CLI, the C# or TypeScript SDK, or the HTTP API.

Query your data
in the language you love

  • Typed C# and TypeScript clients
  • Postgres wire protocol for psql and drivers
  • Up to 256 statements in one transaction

Or ask your favorite AI agent to do it for you

We support CLI and MCP. Connect Claude Code, Cursor, or any MCP client to the TerraScale MCP server with a personal access token. The agent acts with your roles, and every call is checked again. Agents can also call the HTTP API from a shell.

  • List my databases and their regions.
  • Find customers with 10 or more seats in the app database.
  • How much of this month’s operation-unit allowance have we used?
  • list_databases
  • execute_sql
  • get_usage
  • list_backups
from terrascale import TerraScale

# Server-side: reads TERRASCALE_API_KEY and TERRASCALE_PROJECT_ID.
with TerraScale() as client:
    db = client.database("app")
    customers = db.query(
        "SELECT email, seats FROM customers WHERE seats >= ? ORDER BY seats DESC LIMIT 25",
        [10],
    )
    for row in customers:
        print(row.get_string("email"), row.get_int64("seats"))

Questions before you start.

An active-active multi-region SQL database with functions, file storage and live edge shapes. Each database holds tables, indexes, views, and triggers, with foreign keys always enforced. You reach it over the Postgres wire protocol, HTTP, the CLI, the SDKs, or MCP.

Ready to get started?

Create account