Adam Fortuna on Nostr: The last few days I've been learning Supabase for a project I'm helping out on. I'm ...
The last few days I've been learning Supabase for a project I'm helping out on. I'm very impressed with it so far.
I've always been hesitant about putting logic in a database due to how tough it is to test.
But Supabase has an answer for that!
You can create tests that are SQL transactions. These tests can even create users, login as users, test what that user should be able to access, test triggers and more.
Since these tests are just SQL, they're fast.
https://usebasejump.com/blog/testing-on-supabase-with-pgtap
I've always been hesitant about putting logic in a database due to how tough it is to test.
But Supabase has an answer for that!
You can create tests that are SQL transactions. These tests can even create users, login as users, test what that user should be able to access, test triggers and more.
Since these tests are just SQL, they're fast.
https://usebasejump.com/blog/testing-on-supabase-with-pgtap