buildDeleteQuery() — drizzle-orm Function Reference
Architecture documentation for the buildDeleteQuery() function in dialect.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 4c2e54df_cf4a_0fab_693f_3d09bedc5a55["buildDeleteQuery()"] 1da3f399_3da2_55ff_342e_fb92de5e010c["SingleStoreDialect"] 4c2e54df_cf4a_0fab_693f_3d09bedc5a55 -->|defined in| 1da3f399_3da2_55ff_342e_fb92de5e010c 4a664942_d2a4_176d_a746_ecda030d3d74["buildWithCTE()"] 4c2e54df_cf4a_0fab_693f_3d09bedc5a55 -->|calls| 4a664942_d2a4_176d_a746_ecda030d3d74 625dcfbf_0612_f909_2143_34d4e88bb50c["buildSelection()"] 4c2e54df_cf4a_0fab_693f_3d09bedc5a55 -->|calls| 625dcfbf_0612_f909_2143_34d4e88bb50c 20a80e8b_02c4_b4c7_180f_3bc7c4c5fc21["buildOrderBy()"] 4c2e54df_cf4a_0fab_693f_3d09bedc5a55 -->|calls| 20a80e8b_02c4_b4c7_180f_3bc7c4c5fc21 27bb2127_ce03_aaf8_abe2_0189af2b27e5["buildLimit()"] 4c2e54df_cf4a_0fab_693f_3d09bedc5a55 -->|calls| 27bb2127_ce03_aaf8_abe2_0189af2b27e5 style 4c2e54df_cf4a_0fab_693f_3d09bedc5a55 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/dialect.ts lines 119–133
buildDeleteQuery({ table, where, returning, withList, limit, orderBy }: SingleStoreDeleteConfig): SQL {
const withSql = this.buildWithCTE(withList);
const returningSql = returning
? sql` returning ${this.buildSelection(returning, { isSingleTable: true })}`
: undefined;
const whereSql = where ? sql` where ${where}` : undefined;
const orderBySql = this.buildOrderBy(orderBy);
const limitSql = this.buildLimit(limit);
return sql`${withSql}delete from ${table}${whereSql}${orderBySql}${limitSql}${returningSql}`;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does buildDeleteQuery() do?
buildDeleteQuery() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/dialect.ts.
Where is buildDeleteQuery() defined?
buildDeleteQuery() is defined in drizzle-orm/src/singlestore-core/dialect.ts at line 119.
What does buildDeleteQuery() call?
buildDeleteQuery() calls 4 function(s): buildLimit, buildOrderBy, buildSelection, buildWithCTE.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free