Glossary · BackendAlso: ORM
What is an ORM?
An ORM (object-relational mapping) library lets developers work with database tables as objects and typed functions in their programming language, instead of writing SQL by hand. It generates the SQL, maps results back to objects and usually manages schema migrations. Popular TypeScript examples include Prisma and Drizzle.
Why it matters
ORMs speed up everyday work and add type safety and migrations, but can hide inefficient queries.
Good teams use the ORM for most work, check the SQL it generates, and drop down to raw SQL where performance matters.
Example
db.select().from(users).where(eq(users.email, email)) in Drizzle compiles to a single SQL query with a typed result.