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

toSQL() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f7f98834_d144_dace_526d_6198a6a34229["toSQL()"]
  ce2e790a_b4fb_fe3b_0e1e_b49965e041b1["MySqlUpdateBase"]
  f7f98834_d144_dace_526d_6198a6a34229 -->|defined in| ce2e790a_b4fb_fe3b_0e1e_b49965e041b1
  ad9814cf_d44f_1168_824d_dbe34354c4d4["toSQL()"]
  ad9814cf_d44f_1168_824d_dbe34354c4d4 -->|calls| f7f98834_d144_dace_526d_6198a6a34229
  a36e5060_2daa_db6e_ec01_add82b598440["getSQL()"]
  f7f98834_d144_dace_526d_6198a6a34229 -->|calls| a36e5060_2daa_db6e_ec01_add82b598440
  style f7f98834_d144_dace_526d_6198a6a34229 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/query-builders/update.ts lines 221–224

	toSQL(): Query {
		const { typings: _typings, ...rest } = this.dialect.sqlToQuery(this.getSQL());
		return rest;
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does toSQL() do?
toSQL() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/query-builders/update.ts.
Where is toSQL() defined?
toSQL() is defined in drizzle-orm/src/mysql-core/query-builders/update.ts at line 221.
What does toSQL() call?
toSQL() calls 1 function(s): getSQL.
What calls toSQL()?
toSQL() is called by 1 function(s): toSQL.

Analyze Your Own Codebase

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

Try Supermodel Free