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
  fc16af3e_3100_a7f6_55e0_a4f8b741a096["update()"]
  9f85cd22_fd1d_a3c9_2e3f_f17ef323455e["BaseSQLiteDatabase"]
  fc16af3e_3100_a7f6_55e0_a4f8b741a096 -->|defined in| 9f85cd22_fd1d_a3c9_2e3f_f17ef323455e
  92708577_0446_8fcc_a6d6_c05d0c9005b0["with()"]
  92708577_0446_8fcc_a6d6_c05d0c9005b0 -->|calls| fc16af3e_3100_a7f6_55e0_a4f8b741a096
  22556be1_3c4d_bb6a_b1d6_687082441712["withReplicas()"]
  22556be1_3c4d_bb6a_b1d6_687082441712 -->|calls| fc16af3e_3100_a7f6_55e0_a4f8b741a096
  style fc16af3e_3100_a7f6_55e0_a4f8b741a096 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/db.ts lines 471–473

	update<TTable extends SQLiteTable>(table: TTable): SQLiteUpdateBuilder<TTable, TResultKind, TRunResult> {
		return new SQLiteUpdateBuilder(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/sqlite-core/db.ts.
Where is update() defined?
update() is defined in drizzle-orm/src/sqlite-core/db.ts at line 471.
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