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

from() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  05e8f5f8_c1a4_cfef_1a4b_fd77f384064e["from()"]
  2554514b_4610_9aed_e6d5_669cd23017c0["SQLiteUpdateBase"]
  05e8f5f8_c1a4_cfef_1a4b_fd77f384064e -->|defined in| 2554514b_4610_9aed_e6d5_669cd23017c0
  style 05e8f5f8_c1a4_cfef_1a4b_fd77f384064e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/query-builders/update.ts lines 255–260

	from<TFrom extends SQLiteTable | Subquery | SQLiteViewBase | SQL>(
		source: TFrom,
	): SQLiteUpdateWithJoins<this, TDynamic, TFrom> {
		this.config.from = source;
		return this as any;
	}

Domain

Subdomains

Frequently Asked Questions

What does from() do?
from() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sqlite-core/query-builders/update.ts.
Where is from() defined?
from() is defined in drizzle-orm/src/sqlite-core/query-builders/update.ts at line 255.

Analyze Your Own Codebase

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

Try Supermodel Free