TELNYX EDGE COMPUTE

SQLDB

Create a SQLite database, bind it in your config, query it from your functions. No database server to manage, no infrastructure to provision. Just SQL.

CiscoOpenAITalkdeskAmerican Red CrossZillowMicrosoftCosmoIBMState of IowaCiscoOpenAITalkdeskAmerican Red CrossZillowMicrosoftCosmoIBMState of Iowa
WHY TELNYX

Build on one platform, not a stack of vendors.

Compute, storage, database, inference, and telecom on one account, one API, one bill. SQLDB is the relational data layer, connected through bindings, not API calls.

FEATURES

SQL without the database server

Create a database in one command. Bind it in your config. Query it from TypeScript or from the CLI. No provisioning, no sizing, no connection pool to manage.

  • Zero-credential edge access

    Your functions reach SQLDB directly through a typed env binding. No connection string, no network hop, no API key. The database is available the moment your function runs.

  • REST API and CLI

    Query any database from the terminal or over HTTP without deploying a function. Create databases, apply migrations, inspect data, run backfills. Same data, no deploy cycle.

  • SQLite you already know

    Full SQLite query surface. SELECT, JOIN, aggregate, GROUP BY, secondary indexes. If you know SQL, you know SQLDB. No proprietary query language, no dialect to learn.

  • Shared by every function that binds it

    One database, many functions. Create it once, bind it by id, and every function that needs the data can query it. A row written by one function is visible to the next request from any other.

  • Schema before code

    Create a database, apply schema from the CLI, then ship a function that binds it. Your schema exists before any code runs. Migrations are versioned and applied from the terminal.

  • Colocated with compute and inference

    Your database runs on the same infrastructure as your functions and your models. No cross-provider latency. No egress fee for querying your own data. No failure boundary between your code and your database.

HOW IT WORKS

Query in three steps

Create a database from the CLI, bind it in your config, and query it from your function through a typed env binding. No server to size, no connection pool to manage.

Create a database

telnyx-edge storage sqldb create --name my-app-db

telnyx-edge storage sqldb execute <database_id> --remote \
  --command "CREATE TABLE links (
    id INTEGER PRIMARY KEY,
    slug TEXT NOT NULL UNIQUE,
    target TEXT NOT NULL
  )"

Bind it in your config

# telnyx.toml
[storage.sqldb.DB]
id = "<database_id>"

Query from your function

import { env } from "@telnyx/edge-runtime";

export default {
  async fetch(req: Request): Promise<Response> {
    const link = await env.DB
      .prepare("SELECT * FROM links WHERE slug = ?")
      .bind("docs")
      .first();

    return Response.json(link);
  },
};
BINDINGS

What SQLDB connects to on the platform.

SQLDB is the relational data layer for Edge Compute. Every function that binds a database can query it through env with zero credentials. The CLI and REST API reach the same data without deploying anything.

Sign up and start building.

Get an API key, create a database, and run your first query in minutes.

FAQ

SQLDB is a serverless SQLite database for Edge Compute. Create a database, bind it by id in your config, and query it from any function through a typed env binding. No database server to manage, no connection pool to size, no infrastructure to provision.