Core Development
supabase/wrappers is open source. PRs and issues are welcome.
Development
Requirements:
Testing
Tests are located in each FDW's tests.rs file. For example, Stripe FDW tests are in wrappers/src/fdw/stripe_fdw/tests.rs file.
To run the tests locally, we need to start the mock containers first:
1 2 | |
And then build all Wasm FDW packages:
1 | |
Now we can run all the tests:
1 | |
You can also run the native or Wasm FDW tests individually:
1 2 3 4 5 | |
Interactive PSQL Development
To reduce the iteration cycle, you may want to launch a psql prompt with wrappers installed to experiment a single FDW like below:
1 2 | |
Try out the SQLs in the psql prompt with the wrappers extension installed like below:
1 2 3 4 5 | |
For debugging, you can make use of notice! macros to print out statements while using your wrapper in psql.