Are foreign key polyfills for PlanetScale supported by Drizzle?
Hi
Prisma supports this (although slow). See: https://www.prisma.io/docs/guides/database/planetscale#how-to-emulate-relations-in-prisma-client
I want to use Planetscale but foreign key constraints are very important to me.
I'm asking this because I couldn't find any docs mentioning whether this is supported or not in the new Drizzle docs (and currently too lazy/busy to setup new project and DB to test this ).
I really like the performance of Drizzle, and I wanna switch if this is supported (or there are workarounds to it).
2 Replies
Update: seems to be answered here: https://discord.com/channels/1043890932593987624/1043890932593987627/1109392502907224115
Not supported.
yes, foreign key "emulation" is not supported