Skip to content

Foreign data wrappers

Tested with: Not yet available on Databasezy · describes the launch design

Foreign data wrappers make data that lives elsewhere look like tables in your Postgres database, so you can join it with your own rows in one query.

  • Pick a source in the portal (Stripe, S3, ClickHouse, BigQuery, Airtable, Firebase, or another Postgres server with postgres_fdw), enter its credentials and choose the tables to import. A preview shows rows before anything is created.
  • Credentials are stored encrypted in your database, never in the control plane.
  • The wrapper’s tables live in a schema you choose, governed by the same grants and policies as your own tables.
SQL
select c.email, sum(i.amount_paid) / 100.0 as paid
from stripe.invoices i join customers c on c.stripe_id = i.customer
group by c.email;