2
Better formatting of SQL statements for RLS policies review?
Source: supabase/supabase#18994 · opened by @thibistaken
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.
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.
No pledges yet. Be the first to back this.
Comments
Similar requests
Default RLS Policies.
3 votes · 0 comments
Add Feature to Test + Debug Row Level Security Policies
47 votes · 0 comments
Make it possible to view raw RLS policy SQL in the Supabase Dashboard
18 votes · 0 comments
Better protection against failing to protect tables with RLS
1 vote · 0 comments
Disable RLS policies
1 vote · 0 comments
No comments yet.