Use RLS with raw SQL from an edge function
Hello All,
I am working on a project which requires multiple database manipulations to run in a single transaction, and I have this working from an edge function, using the Deno Postgres package and connection pooling.
Is there a way to pass on the user parameters from a request within the SQL which would then be used by the RLS function
Many thanks
I am working on a project which requires multiple database manipulations to run in a single transaction, and I have this working from an edge function, using the Deno Postgres package and connection pooling.
Is there a way to pass on the user parameters from a request within the SQL which would then be used by the RLS function
auth.uid()?Many thanks