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
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.
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.
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.
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_databasesexecute_sqlget_usagelist_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.
São Paulo (gru), the San Francisco Bay Area (sjc), and Frankfurt (fra). A database lives in the regions you choose, and every one of them accepts reads and writes.
Yes. Every region of the set is an equal peer: there is no home region, and a write commits in the region you call. Fast mode, the default, commits locally and replicates to the other regions without ever reverting a write. Strong mode runs serializable transactions agreed by two of three regions. A bookmark returned on every response gives you read-your-writes in any region.
Yes, through the Postgres wire protocol. psql, Postgres drivers and ORMs such as Prisma, Drizzle and EF Core connect to pg.terrascale.tech with an API key as the password. Common Postgres syntax works: $1 parameters, ::casts, SERIAL, ILIKE, RETURNING, ON CONFLICT, COPY, LISTEN and the pg_catalog views.
Not yet. Public Alpha has no uptime percentage, latency promise, or SLA. Current availability is published on the status page.
Use psql or any Postgres driver, the typed C# and TypeScript SDKs, the HTTP API, or the CLI. You can also connect Claude Code, Cursor, or any MCP client to the TerraScale MCP server with a personal access token.
Customer traffic uses TLS. Database files in every region of the set, and backups, are encrypted at rest. Database deletion destroys its backup data keys so retained encrypted backups cannot be restored. Physical cleanup is a separate step.
Free requires no card. Starter, Pro, and Team are billed monthly or yearly. Operation units over a paid allowance go on the next invoice and storage over it is billed per GB-month; client egress overage is not billed yet.
Yes. Export through the dashboard or API at any time. There is no exit fee for leaving TerraScale.
Yes. Live shapes support filters and selected columns. Database rules decide which rows and columns end-user tokens read; a shape filter does not replace authorization.
Yes. Create a database with a TTL, fork a database, and issue a key scoped to one database with read or read-write access. Expiry deletes the database. Point-in-time restore to a new database is available; in-place restore is coming.
Yes. Plans enforce monthly write caps and SQL read fair use. The write cap stops new writes; the read allowance stops SQL reads while shape reads stay available. Customer-set hard spending caps are coming.