RLS - Typesafety

I noticed in the docs the created RLS client doesn't have your schema passed to it, meaning you wouldn't be able to use dbClient.query
  • docs here: https://orm.drizzle.team/docs/rls
    Is there a reason for this? In my testing, if you pass the same Database type your usual client returns, you get full functionality. This might just be a docs miss, but want to be sure in case this was done this way for a reason!
Drizzle ORM is a lightweight and performant TypeScript ORM with developer experience in mind.
Was this page helpful?