3 ms·
One thing to note is that with a row-level security implementation like Postgres you can pretty much do this already. For example, if you have a table `users` w
by crooked-v 3y ago
One thing to note is that with a row-level security implementation like Postgres you can pretty much do this already. For example, if you have a table `users` with appropriate RLS policies, `SELECT * FROM users` will only return the rows that whoever's doing the selecting is allowed to see.
- leblancfg 3y agoAFAICT that’s limited to single table calls though. I guess you could use to recreate the DB at the ORM level since you know the schema as well. But I still like this idea living at the database layer and not an extra layer of abstraction on top of it.