---
title: "Supabase Wrappers, a Postgres FDW framework written in Rust"
description: "Supabase Wrappers is an alpha Rust framework, built on pgx, for writing Postgres Foreign Data Wrappers that expose external systems such as Stripe and Firebase as queryable foreign tables."
url: "https://swe.quest/articles/supabase-wrappers-a-postgres-fdw-framework-written-in-rust-284bf0f40798dcde"
canonical: "https://supabase.com/blog/postgres-foreign-data-wrappers-rust"
source: "Supabase"
published: "2022-12-15"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 9
tags: ["postgres","rust","data-pipelines","analytics"]
---

# Supabase Wrappers, a Postgres FDW framework written in Rust

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2022-12-15, 9 min read, Announcement. Original: [https://supabase.com/blog/postgres-foreign-data-wrappers-rust](https://supabase.com/blog/postgres-foreign-data-wrappers-rust)

## Summary

Supabase Wrappers is an alpha Rust framework, built on pgx, for writing Postgres Foreign Data Wrappers that expose external systems such as Stripe and Firebase as queryable foreign tables. A worked example connects a Stripe account, maps products to a foreign table and queries it with SQL or the Supabase JS client. Wrappers also support a "QETL" (query, extract, transform, load) pattern: query warehouses like Snowflake on demand, join remote data with local tables, and materialize results with pg\_cron. The framework adds async support for REST-API-backed FDWs and early push-down support, with ClickHouse, BigQuery and Airtable wrappers in development.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)
- [Rust](https://swe.quest/tags/rust.md) (Languages)
- [Data pipelines](https://swe.quest/tags/data-pipelines.md) (Data & databases)
- [Analytics & OLAP](https://swe.quest/tags/analytics.md) (Data & databases)

## Prerequisites

- PostgreSQL basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))
- SQL ([easy posts on SQL](https://swe.quest/tags/sql.md?difficulty=easy))

## Keywords

Supabase Wrappers, Foreign Data Wrappers, pgx, Stripe, Firebase, Snowflake, pg\_cron, QETL

## Related posts

- [Supabase Wrappers v0.2: Query Pushdown & Remote Subqueries](https://swe.quest/articles/supabase-wrappers-v0-2-query-pushdown-remote-subqueries-4a8d4853bc0c2d1c.md): Supabase · 2023-12-14 · Medium · 4 min read · PostgreSQL, Databases, Rust
  Supabase Wrappers v0.2, a Rust-based Postgres foreign data wrapper framework for querying third-party sources with SQL, adds query pushdown, remote subqueries and per-FDW usage statistics.
- [Postgres Foreign Data Wrappers with Wasm](https://swe.quest/articles/postgres-foreign-data-wrappers-with-wasm-121e854eab291417.md): Supabase · 2024-08-16 · Medium · 5 min read · PostgreSQL, WebAssembly, Rust, Sandboxing & isolation
  Supabase Wrappers, a Rust framework for building Postgres Foreign Data Wrappers, now supports WebAssembly FDWs that are downloaded from URLs like GitHub or S3, checksum-verified, cached and run in a sandboxed Wasm runtime inside the Postgres extension.
- [Sync Stripe Data to Your Supabase Database in One Click](https://swe.quest/articles/sync-stripe-data-to-your-supabase-database-in-one-click-b7cbed62c6a06c5c.md): Supabase · 2025-12-19 · Medium · 5 min read · Payments & fintech, PostgreSQL, Data pipelines, SQL
  Supabase now offers a one-click Stripe Sync Engine integration that copies Stripe customers, subscriptions, invoices and payments into real Postgres tables, kept current via webhooks plus scheduled backfills run through pgmq-based Supabase Queues and Edge Functions with retries.
- [Adding Async Streaming to Postgres Foreign Data Wrappers](https://swe.quest/articles/adding-async-streaming-to-postgres-foreign-data-wrappers-200bc8dce10fc011.md): Supabase · 2025-12-04 · Medium · 4 min read · PostgreSQL, Rust, Concurrency, Analytics & OLAP
  Supabase Wrappers' ClickHouse foreign data wrapper now streams results asynchronously instead of fetching full result sets or fixed batches while blocking the Postgres backend.
- [NoSQL Postgres: Add MongoDB compatibility to your Supabase projects with FerretDB](https://swe.quest/articles/nosql-postgres-add-mongodb-compatibility-to-your-supabase-projects-with-ferretdb-44595afd7e1b96f1.md): Supabase · 2024-01-31 · Medium · 4 min read · PostgreSQL, Databases, Containers
  FerretDB, an open source MongoDB-compatible proxy, can run on top of a Supabase Postgres database, storing each collection as a table in a \`ferretdb\` schema with documents as JSONB rows.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
