---
title: "Drizzle ORM — Definition & Engineering Context"
description: "Drizzle ORM is a lightweight, type-safe Object-Relational Mapper (ORM) for TypeScript that lets developers write SQL queries with full type inference and automated migration generation."
canonical: https://erpstack.io/glossary/drizzle-orm
markdown_url: https://erpstack.io/glossary/drizzle-orm.md
publisher: ERPStack
---

# Drizzle ORM

> **Definition:** Drizzle ORM is a lightweight, type-safe Object-Relational Mapper (ORM) for TypeScript that lets developers write SQL queries with full type inference and automated migration generation.

## In depth

Unlike heavy ORMs that abstract database queries away, Drizzle ORM matches raw SQL. Drizzle provides complete type safety, meaning the database schema acts as the source of truth for all application types. Drizzle supports edge environments, allowing it to run within serverless edge functions.

## How ERPStack applies this

We use Drizzle ORM on all projects. It gives our databases raw SQL query speeds while preventing type mismatch bugs and SQL injection vulnerabilities.

## Related reading

- [PostgreSQL Database](https://erpstack.io/glossary/postgres)
- [tRPC Protocol](https://erpstack.io/glossary/trpc)
