Docs / SDKs

SDKs

Official clients wrap the HTTP API with idiomatic ergonomics, parameter binding, and connection helpers. Every SDK targets the same endpoints, so you can mix and match across services. All four are open source at github.com/trydeltex.

TypeScript / JavaScript

bash
npm install @deltex/client
typescript
import { Deltex } from '@deltex/client'

const db = new Deltex({ apiKey: process.env.DELTEX_KEY })
const { rows } = await db.query(
  'SELECT * FROM users WHERE id = $1', [1])

Runs in Node, Bun, Deno, Cloudflare Workers, and Vercel Edge. Sub-paths @deltex/client/serverless (Neon-compatible) and @deltex/client/drizzle let you use Deltex as a Drizzle ORM driver over the edge.

Python

bash
pip install deltex
python
from deltex import Deltex

db = Deltex(api_key=os.environ["DELTEX_KEY"])
rows = db.query("SELECT * FROM users WHERE id = %s", [1])

Ships a CLI too: deltex query, deltex health, deltex tables, deltex exec.

Go

bash
go get github.com/trydeltex/deltex-go
go
db := deltex.New(deltex.Config{APIKey: key})
rows, err := db.Query(ctx,
  "SELECT * FROM users WHERE id = $1", 1)

Supports parameterized queries, QueryOne, Strong() reads, and serializable transactions with conflict backoff.

Rust

toml
[dependencies]
deltex = "1"
rust
let db = Deltex::new(&key);
let rows = db.query("SELECT * FROM users WHERE id = $1", &[&1]).await?;

Postgres wire protocol

A bridge process speaks the PostgreSQL wire protocol, so existing tools like psql and standard Postgres drivers can connect to Deltex directly — useful for migration and BI tools.