I'm trying to generate supabase type defs with the supabase js lib. First i tried using the --local flag, it didn't work. Then I watched supabase video on this and tried the --db-url flag but it still doesn't work.
Here's the command:
supabase gen types typescript --db-url postgresql://postgres:mypassword@db.pyxgnexupxwssmlauwxj.supabase.co:5432/postgres > src/routes/api/settings/[id]/database.types.ts
supabase gen types typescript --db-url postgresql://postgres:mypassword@db.pyxgnexupxwssmlauwxj.supabase.co:5432/postgres > src/routes/api/settings/[id]/database.types.ts
(mypassword isn't my real password) but I get an error like:
Error: error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/public.ecr.aws/t3w2s2c9/postgres-meta:v0.45.0/json": open //./pipe/docker_engine: The system cannot find the file specified.
Error: error during connect: This error may indicate that the docker daemon is not running.: Get "http://%2F%2F.%2Fpipe%2Fdocker_engine/v1.24/images/public.ecr.aws/t3w2s2c9/postgres-meta:v0.45.0/json": open //./pipe/docker_engine: The system cannot find the file specified.
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.