▲ | damidekronik 15 hours ago | |
Prisma doesn't cover plenty of SQL features. custom types, more complex indexes (like where clause). It is also a VC backed biznes, need to be ready to drop it at almost any time, SQL/postgres on the other hand is here to stay. RLS is hard to work with, hard to debug, hard to reason about, cumbersome. It is however powerful. | ||
▲ | tough 12 hours ago | parent [-] | |
Right! for RLS i found out about atlasgo, which lets you do Schemas as Code including RLS stuff, so my mind went to leverage the .zmodel to generate not only the prisma schemas through it and the client api codegen sdk, but also the RLS stuff either with plain sql migrations or a specific framework for rls. all in all this is probably too much and as long as the app-api level is secure with zenstack and i dont use pg directly anywhere else it should be 'safe' i just wanted to harden all the stack speaking of sorts... idk |