Run SQL through Supabase Client #7822
Answered
by
steve-chavez
masnwilliams
asked this question in
Questions
|
Hello! I have a seed script I use on local development that populates my database with some fake data. I have most of everything automated however I still have to manually input SQL scripts to create a trigger and function to handle new users. Is there any way to use the supabase client to run raw SQL just like the queries you can input into the SQL Editor? Here is the SQL I have to run: Any help is appreciated! |
Answered by
steve-chavez
Jul 21, 2022
Replies: 1 comment 2 replies
|
Hello,
Hm, that sounds like a migration that you could run through https://github.com/supabase/cli |
2 replies
Answer selected by
masnwilliams
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
Hm, that sounds like a migration that you could run through https://github.com/supabase/cli