Skip to content
supabasePublic

About

Postgres Foreign Data Wrapper development framework in Rust.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

903 stars

Watchers

25 watching

Forks

Wrappers

Wrappers is a development framework for Postgres Foreign Data Wrappers (FDW), written in Rust. Its goal is to make Postgres FDW development easier while keeping Rust language's modern capabilities, such as high performance, strong types, and safety.

Wrappers is also a collection of FDWs built by Supabase. We currently support the following FDWs, with more under development:

FDW Description Read Modify
AWS Cognito A FDW for AWS Cognito βœ… ❌
Airtable A FDW for Airtable API βœ… ❌
Apache Iceberg A FDW for Apache Iceberg βœ… ❌
Auth0 A FDW for Auth0 βœ… ❌
BigQuery A FDW for Google BigQuery βœ… βœ…
Calendly A Wasm FDW for Calendly βœ… ❌
Cal.com A Wasm FDW for Cal.com βœ… ❌
Clerk A Wasm FDW for Clerk βœ… ❌
Clickhouse A FDW for ClickHouse βœ… βœ…
Cloudflare D1 A Wasm FDW for Cloudflare D1 βœ… βœ…
DuckDB A FDW for DuckDB βœ… ❌
DynamoDB A FDW for DynamoDB βœ… βœ…
Firebase A FDW for Google Firebase βœ… ❌
HelloWorld A demo FDW to show how to develop a basic FDW.
HubSpot A Wasm FDW for HubSpot βœ… ❌
Infura A Wasm FDW for Infura blockchain data βœ… ❌
Langfuse A Wasm FDW for Langfuse βœ… ❌
Logflare A FDW for Logflare βœ… ❌
MongoDB A FDW for MongoDB βœ… βœ…
MySQL A FDW for MySQL βœ… βœ…
Notion A Wasm FDW for Notion βœ… ❌
OpenAPI A Wasm FDW for any OpenAPI 3.0+ REST API βœ… ❌
Orb A Wasm FDW for Orb βœ… ❌
Paddle A Wasm FDW for Paddle βœ… βœ…
Redis A FDW for Redis βœ… ❌
S3 A FDW for AWS S3 βœ… ❌
S3 Vectors A FDW for AWS S3 Vectors βœ… βœ…
SQL Server A FDW for Microsoft SQL Server βœ… ❌
Slack A Wasm FDW for Slack βœ… ❌
Snowflake A Wasm FDW for Snowflake βœ… βœ…
Stripe A FDW for Stripe API βœ… βœ…

Warning

Restoring a logical backup of a database with a materialized view using a foreign table can fail. For this reason, either do not use foreign tables in materialized views or use them in databases with physical backups enabled.

Features

  • Minimum interface and easy to implement.
  • Support for rich data types.
  • Support both sync and async backends, such as RDBMS, RESTful APIs, flat files and etc.
  • Built on top of pgrx, providing higher level interfaces, without hiding lower-level C APIs.
  • WHERE, ORDER BY, LIMIT pushdown are supported.

Documentation

Installation

Wrappers is a pgrx extension, you can follow the pgrx installation steps to install Wrappers.

Basically, run below command to install FDW after pgrx is installed. For example,

cargo pgrx install --pg-config [path_to_pg_config] --features stripe_fdw

Developing a FDW

Visit Wrappers Docs for more details.

License

Apache License Version 2.0

crates.io badge docs.rs badge Test Status MIT/Apache-2 licensed Contributors

About

Postgres Foreign Data Wrapper development framework in Rust.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

903 stars

Watchers

25 watching

Forks

Releases

Sponsor this project

Used by

Contributors

Languages