Better formatting of SQL statements for RLS policies review? #18994
Unanswered
thibistaken
asked this question in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I've posted this message on Discord and was redirected here to share this feature request.
When Supabase generates SQL statements for RLS policies, the formatting could be made more readable by splitting SQL statements on multiple lines based on operators. As it is a read-only editor, the user cannot modify the policy (must click back to edit) but should still take great care in making sure it is correctly generated SQL.
These statements are usually pretty simple but as soon as it gets over 2 lines, it is much harder to read and digest (especially for devs not used to dealing with SQL).
Currently, it looks like this on the Supabase Studio UI:
It would look easier to read and review in this format:
What do you think? Has this been discussed before? I could not find it on GitHub, Discord or Reddit.
All reactions