Open salvinoto opened 2 months ago
Thanks for the suggestion @salvinoto. We have thought about providing a tighter integration with Supabase, but would also like to keep this as a generic tool that can be used with any Postgres DB. Some ideas:
I think what would be useful is the Supabase shim method. It doesn't necessarily need to be only for Supabase, but I think it would be helpful if it understood Supabase upon request. The problem is that I don't want it to export SQL that requires writing those tables because it will fail, thinking it needs to overwrite those tables that existing when I restore the db from file downloaded. I'm just trying to think of the best way for it to simulate being a Supabase project. I understand that this can be difficult when trying to keep it generic and not tied to a specific vendor.
Feature request
Is your feature request related to a problem? Please describe.
When asking to generate based around Supabase Auth, it understands that Supabase has its own built in tables for auth, but it cant generate SQL unless it puts in a "mock users table". It would be much more useful if it had more context and features for Supabase specifically so I can just drag ' n drop a generated database in.
Describe the solution you'd like
I'd like for it to be able to use features like supabase auth without having to generate fake tables to simulate supabase auth. Id rather it just properly do it so I can copy and paste my migrations and have it integrated with my database automatically.
Describe alternatives you've considered
The only thing I can do is just edit the migration to remove the fake auth table, and replace all of the SQL with Supabase Auth tables.
Additional context
Here is an example conversation