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

buildOrderBy() — drizzle-orm Function Reference

Architecture documentation for the buildOrderBy() function in dialect.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  20a80e8b_02c4_b4c7_180f_3bc7c4c5fc21["buildOrderBy()"]
  1da3f399_3da2_55ff_342e_fb92de5e010c["SingleStoreDialect"]
  20a80e8b_02c4_b4c7_180f_3bc7c4c5fc21 -->|defined in| 1da3f399_3da2_55ff_342e_fb92de5e010c
  4c2e54df_cf4a_0fab_693f_3d09bedc5a55["buildDeleteQuery()"]
  4c2e54df_cf4a_0fab_693f_3d09bedc5a55 -->|calls| 20a80e8b_02c4_b4c7_180f_3bc7c4c5fc21
  675693c4_8831_5655_52c6_ac204a0b0346["buildUpdateQuery()"]
  675693c4_8831_5655_52c6_ac204a0b0346 -->|calls| 20a80e8b_02c4_b4c7_180f_3bc7c4c5fc21
  3f459852_55f4_d544_4624_42cc8b2004a6["buildSelectQuery()"]
  3f459852_55f4_d544_4624_42cc8b2004a6 -->|calls| 20a80e8b_02c4_b4c7_180f_3bc7c4c5fc21
  style 20a80e8b_02c4_b4c7_180f_3bc7c4c5fc21 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/singlestore-core/dialect.ts lines 260–262

	private buildOrderBy(orderBy: (SingleStoreColumn | SQL | SQL.Aliased)[] | undefined): SQL | undefined {
		return orderBy && orderBy.length > 0 ? sql` order by ${sql.join(orderBy, sql`, `)}` : undefined;
	}

Domain

Subdomains

Frequently Asked Questions

What does buildOrderBy() do?
buildOrderBy() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/dialect.ts.
Where is buildOrderBy() defined?
buildOrderBy() is defined in drizzle-orm/src/singlestore-core/dialect.ts at line 260.
What calls buildOrderBy()?
buildOrderBy() is called by 3 function(s): buildDeleteQuery, buildSelectQuery, buildUpdateQuery.

Analyze Your Own Codebase

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

Try Supermodel Free