Skip to content

Drizzle

Medium — good to knowBackend

ELI5 — The Vibe Check

Drizzle is the ORM for developers who think Prisma is too magical. It's TypeScript-native, SQL-like, and doesn't generate a big client library. You write queries that look almost like SQL but with full type safety. It's the 'I want types but I also want control' ORM.

Real Talk

Drizzle ORM is a lightweight, TypeScript-first ORM that provides a SQL-like query builder with full type safety. Unlike Prisma, it has zero dependencies, no code generation step, and produces queries that closely mirror raw SQL. It supports PostgreSQL, MySQL, and SQLite with both relational and SQL-like query APIs.

Show Me The Code

const users = await db.select()
  .from(usersTable)
  .where(eq(usersTable.email, 'a@b.com'))
  .leftJoin(postsTable, eq(usersTable.id, postsTable.authorId));

When You'll Hear This

"Drizzle gives us Prisma-level type safety without the code generation." / "Our bundle size dropped 200KB after switching from Prisma to Drizzle."

Made with passive-aggressive love by manoga.digital. Powered by Claude.