Ryan
Ryan
TTCTheo's Typesafe Cult
Created by ChrisEvans on 1/30/2025 in #questions
Do you really need an ORM?
@ChrisEvans If you are using the Supabase client sdk then you are right! No need for an ORM the Supabase client library already provides this feature. On the other hand, ORM's can escape your SQL to prevent injection attacks (Supabase SDK also does this). ORM's often come with database migration features for when you want to alter your schema during deployment... (for e.g. https://orm.drizzle.team/docs/drizzle-kit-generate) Another feature that an ORM might provide is being able to migrate to an alternative database like MySQL or SQLite with less changes to your codebase, however this is quite rare and depends on your app. If you do decide to stay minimal, make sure your queries are espcaed correctly and consider a strategy for changes to your database schema...
12 replies