# Drizzle ORM

Open\-source TypeScript SQL data layer with SQL\-like and relational queries, plus optional schema migration tooling\.

ID: Q1199 · Revision: 1247

Type: software · License: Apache\-2\.0[^license] · Status: active

Website: https://orm.drizzle.team



Drizzle ORM is an open\-source data\-access library for JavaScript and TypeScript applications\. It describes SQL tables in code and offers SQL\-like queries alongside a higher\-level relational query API\. Drizzle Kit supplies separate schema and migration tooling\. It is useful when building a custom application around an existing or new SQL database; it is not itself a managed database or complete backend service\.[^readme][^migrations]

## Capabilities and substitutions

### Typed SQL and relational queries — supported

TypeScript table declarations feed SQL\-like and relational APIs; choose a compatible dialect and driver\.[^readme]

Use case: Typed SQL application data access and schema evolution · Platforms: JavaScript/TypeScript runtimes with a compatible database driver · Region: Version, build and integration requirements apply

### Database\-first and code\-first workflows — supported

Kit can introspect a database or generate/apply changes from code; external migration tools remain possible\.[^migrations]

Use case: Typed SQL application data access and schema evolution · Platforms: JavaScript/TypeScript runtimes with a compatible database driver · Region: Version, build and integration requirements apply

### Database integrity from soft relations — unsupported

Application\-level relations alone do not create foreign\-key constraints\. Declare database constraints separately when required\.[^relations]

Use case: Typed SQL application data access and schema evolution · Platforms: JavaScript/TypeScript runtimes with a compatible database driver · Region: Version, build and integration requirements apply

### Version\-independent relation examples — limited

The inspected defineRelations guide explicitly installs RC packages; examples must match the project's ORM and Kit versions\.[^relations]

Use case: Typed SQL application data access and schema evolution · Platforms: JavaScript/TypeScript runtimes with a compatible database driver · Region: Version, build and integration requirements apply

### [Substitute for Prisma ORM](/prismaorm) — limited

Can replace Prisma for typed SQL reads/writes and schema\-change workflows when queries and schema declarations are rewritten\. It does not consume Prisma contracts as an interchangeable client; the database dialect and both versions matter\.[^readme][^migrations][^prisma]

Use case: Typed SQL application data access and schema evolution · Platforms: JavaScript/TypeScript runtimes with a compatible database driver · Region: Version, build and integration requirements apply

## References

[^license]: [Drizzle repository license](<https://github.com/drizzle-team/drizzle-orm/blob/main/LICENSE>) — Apache License 2\.0; distribution conditions (vendor; retrieved 2026-10-07T22:57:40Z)

[^readme]: [Drizzle ORM overview](<https://github.com/drizzle-team/drizzle-orm/blob/main/README.md>) — What is Drizzle; runtime/database support and Ecosystem (vendor; retrieved 2026-10-07T22:58:16Z)

[^migrations]: [Drizzle migration workflows](<https://orm.drizzle.team/docs/migrations>) — Database\-first, code\-first and Options 1–5 (vendor; retrieved 2026-10-07T22:58:16Z)

[^push]: [Drizzle Kit push](<https://orm.drizzle.team/docs/drizzle-kit-push>) — Read schema, introspect database, generate and apply differences (vendor; retrieved 2026-10-07T22:58:10Z)

[^relations]: [Drizzle relations](<https://orm.drizzle.team/docs/relations>) — RC installation; relations API; Foreign keys section (vendor; retrieved 2026-10-07T22:58:00Z)

[^prisma]: [Prisma ORM current overview](<https://www.prisma.io/docs/orm>) — Contract\-based typed queries and version\-specific workflows (vendor; retrieved 2026-10-07T22:58:10Z)

Source revision: https://substitutefor.net/entities/Q1199?revision=1247
