buildCount() — drizzle-orm Function Reference
Architecture documentation for the buildCount() function in count.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 451462b8_aceb_43a7_02c0_c27028bdcca9["buildCount()"] 6104c01b_fd7b_41f5_c553_d6a3e28ac9e9["SQLiteCountBuilder"] 451462b8_aceb_43a7_02c0_c27028bdcca9 -->|defined in| 6104c01b_fd7b_41f5_c553_d6a3e28ac9e9 c1133f7e_e524_6cb2_fd24_cb4fad3dc8c7["constructor()"] c1133f7e_e524_6cb2_fd24_cb4fad3dc8c7 -->|calls| 451462b8_aceb_43a7_02c0_c27028bdcca9 style 451462b8_aceb_43a7_02c0_c27028bdcca9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/sqlite-core/query-builders/count.ts lines 24–29
private static buildCount(
source: SQLiteTable | SQLiteView | SQL | SQLWrapper,
filters?: SQL<unknown>,
): SQL<number> {
return sql<number>`select count(*) from ${source}${sql.raw(' where ').if(filters)}${filters}`;
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does buildCount() do?
buildCount() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/sqlite-core/query-builders/count.ts.
Where is buildCount() defined?
buildCount() is defined in drizzle-orm/src/sqlite-core/query-builders/count.ts at line 24.
What calls buildCount()?
buildCount() is called by 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free