FeatureFuel
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.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests