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

buildLimit() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

drizzle-orm/src/singlestore-core/dialect.ts lines 254–258

	private buildLimit(limit: number | Placeholder | undefined): SQL | undefined {
		return typeof limit === 'object' || (typeof limit === 'number' && limit >= 0)
			? sql` limit ${limit}`
			: undefined;
	}

Domain

Subdomains

Frequently Asked Questions

What does buildLimit() do?
buildLimit() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/dialect.ts.
Where is buildLimit() defined?
buildLimit() is defined in drizzle-orm/src/singlestore-core/dialect.ts at line 254.
What calls buildLimit()?
buildLimit() 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