|
|
|
|
|
by pow_pp_-1_v
1555 days ago
|
|
I don't see why RLS would mandate all your logic living in the DB level.
Basically what the database does when you enable RLS is add the RLS policy clause to every query you run against a table that has the policy applied. So if you have a policy saying "A = 'blah'" on table "dummy", a query like "SELECT * FROM dummy WHERE a_col = 123" becomes "SELECT * FROM dummy WHERE a_col = 123 and A = 'blah'". |
|