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 6b198fad_61da_d3c6_6497_9634ac05c48a["buildLimit()"] 9c5eee4c_4b78_a585_4038_d710de212097["MySqlDialect"] 6b198fad_61da_d3c6_6497_9634ac05c48a -->|defined in| 9c5eee4c_4b78_a585_4038_d710de212097 6603fb43_ff6f_ad94_0e94_0f152d804075["buildDeleteQuery()"] 6603fb43_ff6f_ad94_0e94_0f152d804075 -->|calls| 6b198fad_61da_d3c6_6497_9634ac05c48a 8f9fa658_edb5_f102_51bb_be11ee53973b["buildUpdateQuery()"] 8f9fa658_edb5_f102_51bb_be11ee53973b -->|calls| 6b198fad_61da_d3c6_6497_9634ac05c48a 8ae83588_d5c3_3834_94e9_82ba6770d1a1["buildSelectQuery()"] 8ae83588_d5c3_3834_94e9_82ba6770d1a1 -->|calls| 6b198fad_61da_d3c6_6497_9634ac05c48a style 6b198fad_61da_d3c6_6497_9634ac05c48a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/dialect.ts lines 255–259
private buildLimit(limit: number | Placeholder | undefined): SQL | undefined {
return typeof limit === 'object' || (typeof limit === 'number' && limit >= 0)
? sql` limit ${limit}`
: undefined;
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does buildLimit() do?
buildLimit() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/dialect.ts.
Where is buildLimit() defined?
buildLimit() is defined in drizzle-orm/src/mysql-core/dialect.ts at line 255.
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