Let customers extend your database with code.

Riza lets you run user-defined functions from multiple customers in a secure sandbox embedded in your database.

Input
-- Translate into Spanish
SELECT translate_text('Hello there!', 'es')
1from openai import OpenAI
2
3client = OpenAI()
4
5def translate_text(text, lang):
6    msg = f"Translate the following text into {lang}: {text}\n"
7    response = client.chat.completions.create(
8        model="gpt-3.5-turbo",
9        prompt=msg,
10    )
11    return response.choices[0].text.strip()
12
Output
---
translate_text
----------------
 ¡Hola!
(1 row)
---

The power of customer-defined functions

Upgrade to trusted procedural languages

Let your customers write functions and procedures in Python, TypeScript, Rust, and Go. Unlike other extensions, the Riza runtime executes functions inside a secure sandbox.

SQL is here to stay

Don’t rewrite your data pipelines. Upgrade your existing data stack’s ability to run custom functions in our secure sandbox.

Leverage the latest AI

Go beyond the AI functionality built into your data platform. Leverage LLMs from OpenAI, Anthropic, and others to translate text, summarize data, or power sentiment analysis.

Blazing fast

Functions are compiled to WASM and cached aggressively.

Secure by default

Each execution happens inside its own sandbox with CPU, memory, and network limits.

Flexible deployment

Cloud hosted, hybrid, ByoC, on-prem. Even in-process!

Truly multi-language

Write functions in JavaScript, Python, Go, Rust, and more

Bring compute to your data

The Riza execution runtime is flexible enough to run deep inside your database cluster. Deploy it as a sidecar or an extension embedded directly within popular database engines like PostgreSQL and ClickHouse, with more on the way.

How it works

First you define the interface for your customer functions. Your customers implement this function interface in their programming language of choice. Riza compiles their code to WASM and stores it in our secure private registry.

The Riza runtime integration updates the function catalog, downloads the compiled binaries from the registry, caches them and runs them when a query calls out to the UDF.

Sign up to get early access