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

update() — drizzle-orm Function Reference

Architecture documentation for the update() function in db.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  7d0caa08_9013_3d08_d559_97226a65da99["update()"]
  10fbad18_129f_69a2_7ce3_79ea63dcf5d7["MySqlDatabase"]
  7d0caa08_9013_3d08_d559_97226a65da99 -->|defined in| 10fbad18_129f_69a2_7ce3_79ea63dcf5d7
  511441a5_4f3e_873f_b0b5_120a4a7fe793["with()"]
  511441a5_4f3e_873f_b0b5_120a4a7fe793 -->|calls| 7d0caa08_9013_3d08_d559_97226a65da99
  3d5d57d7_f20f_9ae1_9eba_ee85dbf56738["withReplicas()"]
  3d5d57d7_f20f_9ae1_9eba_ee85dbf56738 -->|calls| 7d0caa08_9013_3d08_d559_97226a65da99
  style 7d0caa08_9013_3d08_d559_97226a65da99 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/db.ts lines 424–426

	update<TTable extends MySqlTable>(table: TTable): MySqlUpdateBuilder<TTable, TQueryResult, TPreparedQueryHKT> {
		return new MySqlUpdateBuilder(table, this.session, this.dialect);
	}

Domain

Subdomains

Frequently Asked Questions

What does update() do?
update() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/db.ts.
Where is update() defined?
update() is defined in drizzle-orm/src/mysql-core/db.ts at line 424.
What calls update()?
update() is called by 2 function(s): with, withReplicas.

Analyze Your Own Codebase

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

Try Supermodel Free