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 41dc55fd_303c_0355_58eb_f68316dcbd26["from()"] 40e4076c_05d5_c280_7940_f08e5d3868d9["GelUpdateBase"] 41dc55fd_303c_0355_58eb_f68316dcbd26 -->|defined in| 40e4076c_05d5_c280_7940_f08e5d3868d9 style 41dc55fd_303c_0355_58eb_f68316dcbd26 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/gel-core/query-builders/update.ts lines 345–354
from<TFrom extends GelTable | Subquery | GelViewBase | SQL>(
source: TFrom,
): GelUpdateWithJoins<this, TDynamic, TFrom> {
const tableName = getTableLikeName(source);
if (typeof tableName === 'string') {
this.joinsNotNullableMap[tableName] = true;
}
this.config.from = source;
return this as any;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does from() do?
from() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/query-builders/update.ts.
Where is from() defined?
from() is defined in drizzle-orm/src/gel-core/query-builders/update.ts at line 345.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free