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
  d8ffd049_f530_2f99_67d7_9d0a5d8fd925["toSQL()"]
  40e4076c_05d5_c280_7940_f08e5d3868d9["GelUpdateBase"]
  d8ffd049_f530_2f99_67d7_9d0a5d8fd925 -->|defined in| 40e4076c_05d5_c280_7940_f08e5d3868d9
  c899867d_099a_19b5_d85d_e2c157d225a0["toSQL()"]
  c899867d_099a_19b5_d85d_e2c157d225a0 -->|calls| d8ffd049_f530_2f99_67d7_9d0a5d8fd925
  32c31339_781d_a35c_bf9a_2d5da944b406["getSQL()"]
  d8ffd049_f530_2f99_67d7_9d0a5d8fd925 -->|calls| 32c31339_781d_a35c_bf9a_2d5da944b406
  style d8ffd049_f530_2f99_67d7_9d0a5d8fd925 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/query-builders/update.ts lines 533–536

	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/gel-core/query-builders/update.ts.
Where is toSQL() defined?
toSQL() is defined in drizzle-orm/src/gel-core/query-builders/update.ts at line 533.
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