Appearance
Practical guides
Use the quickstart to establish one working application connection, then choose the guide for the next operation. For the SQL model, see SQL.
- SDK reference
- Authentication capabilities: current sign-in methods, protocol scope and unavailable flows.
- Authentication: API keys, access tokens, IP allowlists, revocation and two-factor sign-in.
- Agent identities: owner-approved agents for your users, TerraScale MCP and OpenID Connect sign-in.
- Connect with psql and Postgres drivers: host, credentials, Postgres syntax, strong transactions,
COPY,LISTENand catalog support for psql, node-postgres, psycopg, pgx, sqlx and Npgsql. - SQL over HTTP: run SQL statements with any HTTP client.
- Use Drizzle ORM: run Drizzle over the JavaScript SDK or the Postgres wire.
- Use Prisma ORM: run Prisma over the JavaScript SDK's driver adapter or the Postgres wire.
- Use SQLAlchemy and Alembic: run SQLAlchemy's SQLite dialect, the ORM and Alembic migrations over the Python SDK.
- Use GORM, sqlc and bun with Go: run GORM, sqlc and bun over the Go SDK's database/sql driver.
- Use Dapper and ADO.NET with .NET: run Dapper and ADO.NET over the .NET SDK's DbConnection provider, and EF Core over the Postgres wire.
- Typed SQL with the Rust SDK: queries, typed
query_asselects, transactions over the session and batches in Rust. - Errors and safe retries: typed failures and uncertain write outcomes.
- Indexes: secondary, unique, partial and expression indexes with
CREATE INDEX,DROP INDEXandEXPLAIN QUERY PLAN. - Functions
- Monitoring: usage counters, request analytics, Prometheus metrics, request logs and the status page.
- Backups and restore
- Rename a database: change a database's name from the dashboard, API, CLI or SDKs.
- File storage: project files in buckets with owner, role and public read and write rules.
- Schema migrations: versioned SQL table migrations with
ts migrate. - Branches
- Multi-region writes and conflicts: how concurrent fast writes converge, when to use strong mode, and the conflict log.
- Dashboard usage: customer account and database workflow.
- Connect an AI assistant with MCP: sign in or use a personal access token to connect an assistant.
- Single sign-on: connect your identity provider over OIDC for a verified email domain (Team and Enterprise).
- Import data: load rows into a database with batched SQL statements.
The zero-configuration contract explains the platform's intended operating behavior without disclosing deployment internals.