Skip to content

Execute SQL in Supabase API #3419

Answered by ltanady
ltanady asked this question in Questions
Oct 5, 2021 · 6 comments · 26 replies
Discussion options

You must be logged in to vote

We do not allow direct execution of SQL from our APIs. There are two possible solutions:

  1. You can create a function with the query specified and make RPC calls as such or
  2. You can also generate a view with the query specified, then make a SELECT from there

The latter would be the simpler solution. Hope this helps!

Replies: 6 comments 26 replies

Comment options

You must be logged in to vote
17 replies
@elyobo
Comment options

@matart15
Comment options

@ox-harris
Comment options

@matart15
Comment options

@ox-harris
Comment options

Answer selected by soedirgo
Comment options

You must be logged in to vote
2 replies
@Johnrobmiller
Comment options

@MessiDaGod
Comment options

Comment options

You must be logged in to vote
5 replies
@abdirahmn1
Comment options

@revskill10
Comment options

@abdirahmn1
Comment options

@revskill10
Comment options

@abdirahmn1
Comment options

Comment options

You must be logged in to vote
1 reply
@abdirahmn1
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hieuvo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet