Drizzle is a fantastic ORM that is quickly gaining popularity among TypeScript developers. It maintains type safety while striving to use a syntax very familiar to those already comfortable with writing SQL. In this article, we will cover how to use virtual relationships in Drizzle and how to apply those changes to a PlanetScale database.

5m read timeFrom planetscale.com
Post cover image
Table of contents
Foreign keys and foreign key constraintsQuerying related data without foreign key constraintsWhat about cascading actions?Conclusion
18 Impressions