2
Allow New Lines in supabase client Select Statements
Source: supabase/supabase#26746 · opened by @swamidass
The select strings are excellent and useful in supabase, allowing embedded resources. However, this creates very nested strings:
This can can become very long. Ideally, we would be able to format these strings with returns and spaces so they can be better understood by normal humans:
That's readable, and we remove the new lines and the extra whitespace, it works as a supabase select string. However, the newlines all cause parser exceptions, so it can't be used.
Workarounds I've tried don't work. Creating a string like this and replacing the newlines with spaces works great at runtime, but it breaks typscript type inference. So that isn't really workable.
This can can become very long. Ideally, we would be able to format these strings with returns and spaces so they can be better understood by normal humans:
That's readable, and we remove the new lines and the extra whitespace, it works as a supabase select string. However, the newlines all cause parser exceptions, so it can't be used.
Workarounds I've tried don't work. Creating a string like this and replacing the newlines with spaces works great at runtime, but it breaks typscript type inference. So that isn't really workable.
No pledges yet. Be the first to back this.
Comments
Similar requests
Better formatting of SQL statements for RLS policies review?
2 votes · 0 comments
Multiple foreign tables in a single "or" statement
14 votes · 0 comments
Export SQL statements in Table Editor
9 votes · 0 comments
Supabase MCP Server for local development use
2 votes · 0 comments
Git-based Schema Management w/ Supabase CLI
9 votes · 0 comments
No comments yet.