Type-safe client and queries in Supabase using effect.
Type safety requires you to generate typescript types for your database. Running types.sh with your project-id will generate a database.ts file containing types for your supabase project.
Using these we create a Supabase service with effect that returns a client and a type-safe query function.