toQuery() — drizzle-orm Function Reference
Architecture documentation for the toQuery() function in sql.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 254ea348_1614_ce5d_9d75_64a14048644e["toQuery()"] 2361fb30_407d_7604_384a_a24acc5652f6["SQL"] 254ea348_1614_ce5d_9d75_64a14048644e -->|defined in| 2361fb30_407d_7604_384a_a24acc5652f6 f5a982b1_e6b9_5bf8_12b4_3d305d59c2ae["buildQueryFromSourceParams()"] 254ea348_1614_ce5d_9d75_64a14048644e -->|calls| f5a982b1_e6b9_5bf8_12b4_3d305d59c2ae style 254ea348_1614_ce5d_9d75_64a14048644e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sql/sql.ts lines 137–146
toQuery(config: BuildQueryConfig): QueryWithTypings {
return tracer.startActiveSpan('drizzle.buildSQL', (span) => {
const query = this.buildQueryFromSourceParams(this.queryChunks, config);
span?.setAttributes({
'drizzle.query.text': query.sql,
'drizzle.query.params': JSON.stringify(query.params),
});
return query;
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does toQuery() do?
toQuery() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sql/sql.ts.
Where is toQuery() defined?
toQuery() is defined in drizzle-orm/src/sql/sql.ts at line 137.
What does toQuery() call?
toQuery() calls 1 function(s): buildQueryFromSourceParams.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free