Home / Function/ where() — drizzle-orm Function Reference

where() — drizzle-orm Function Reference

Architecture documentation for the where() function in delete.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  94d9f720_4e7d_e435_7ca9_8ebc87bb567b["where()"]
  15a2ffa1_404a_10ae_cde1_a0d6e9ec84e5["MySqlDeleteBase"]
  94d9f720_4e7d_e435_7ca9_8ebc87bb567b -->|defined in| 15a2ffa1_404a_10ae_cde1_a0d6e9ec84e5
  1a21ab38_4faf_3068_e256_38391d240199["buildRelationalQuery()"]
  1a21ab38_4faf_3068_e256_38391d240199 -->|calls| 94d9f720_4e7d_e435_7ca9_8ebc87bb567b
  82000e3a_faae_8201_7ec2_d2c8f50015b0["buildRelationalQueryWithoutLateralSubqueries()"]
  82000e3a_faae_8201_7ec2_d2c8f50015b0 -->|calls| 94d9f720_4e7d_e435_7ca9_8ebc87bb567b
  style 94d9f720_4e7d_e435_7ca9_8ebc87bb567b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/query-builders/delete.ts lines 139–142

	where(where: SQL | undefined): MySqlDeleteWithout<this, TDynamic, 'where'> {
		this.config.where = where;
		return this as any;
	}

Domain

Subdomains

Frequently Asked Questions

What does where() do?
where() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/query-builders/delete.ts.
Where is where() defined?
where() is defined in drizzle-orm/src/mysql-core/query-builders/delete.ts at line 139.
What calls where()?
where() is called by 2 function(s): buildRelationalQuery, buildRelationalQueryWithoutLateralSubqueries.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free