Tried to create a role with a NULL password

using Next.js 15 , neon , drizzle trying to create role for Row-Level Security getting error : Tried to create a role with a NULL password export const admin = pgRole("admin"); () => [crudPolicy({ role: admin, read: false, modify: false })]
3 Replies
Mario564
Mario5646d ago
Do you include your DB password in your connection URL/credentials?
luka
lukaOP6d ago
yes
Mario564
Mario5646d ago
I'm not too familiar with Neon's RLS integration. You could check the Neon docs about its integration with Drizzle to see if there's anything there or ask in their Discord server: https://neon.tech/docs/guides/neon-authorize-drizzle
Neon
Simplify RLS with Drizzle - Neon Docs
How to simplify Row Level Security using crudPolicy Common RLS patterns with Drizzle About Neon Authorize RLS in Drizzle Why simplify RLS policies? Row Level Security (RLS) is an important last line o...

Did you find this page helpful?