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 f351907c_bbd9_af8a_13de_0d7d61602e94["buildCount()"] 9fefc467_daf6_3b94_d48a_54146357e9c2["SingleStoreCountBuilder"] f351907c_bbd9_af8a_13de_0d7d61602e94 -->|defined in| 9fefc467_daf6_3b94_d48a_54146357e9c2 1324292f_5575_737a_6541_bffb9b1909c1["constructor()"] 1324292f_5575_737a_6541_bffb9b1909c1 -->|calls| f351907c_bbd9_af8a_13de_0d7d61602e94 style f351907c_bbd9_af8a_13de_0d7d61602e94 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/query-builders/count.ts lines 24–29
private static buildCount(
source: SingleStoreTable | /* SingleStoreViewBase | */ SQL | SQLWrapper,
filters?: SQL<unknown>,
): SQL<number> {
return sql<number>`select count(*) as 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/singlestore-core/query-builders/count.ts.
Where is buildCount() defined?
buildCount() is defined in drizzle-orm/src/singlestore-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