Skip to content

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

// in practice

db.select().from(users).where(eq(users.email, email)) in Drizzle compiles to a single SQL query with a typed result.

Go deeper

Next step

Need this done properly?

Tell us what you are building. A senior engineer replies within one business day with specific, honest next steps.

First reply
Within 1 business day
Typical start
1–2 weeks
Pricing
Fixed price per phase
You own
All code and accounts