Skip to content
Discussion options

You must be logged in to vote

Hi @maninak , the answer is 2 yes 😄 . On both platforms, the steps are almost same, basically it is:

-- install wrappers extension
create extension if not exists wrappers;

-- create a FDW, such as Stripe FDW
create foreign data wrapper stripe_wrapper
  handler stripe_fdw_handler
  validator stripe_fdw_validator;

-- create a foreign server
create server stripe_server
   foreign data wrapper stripe_wrapper
   options (
     api_key 'sk_test_xxx'
   );

-- create foreign tables
create foreign table stripe.balance (
  balance_type text,
  amount bigint,
  currency text,
  attrs jsonb
)
  server stripe_server
  options (
    object 'balance'
  );

-- use the foreign table
select * from stripe.

Replies: 0 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by burmecia
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wrappers Issues regarding Foreign Data Wrappers (FDWs) within Supabase
2 participants