then() — drizzle-orm Function Reference
Architecture documentation for the then() function in count.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD b6165d2f_997d_3c6f_57a3_f2093e2d2b8b["then()"] d01b7d32_c197_dd65_acbf_7910bdd5edfa["GelCountBuilder"] b6165d2f_997d_3c6f_57a3_f2093e2d2b8b -->|defined in| d01b7d32_c197_dd65_acbf_7910bdd5edfa 091f4fd6_99f9_5891_5a07_db26c7a4eb7d["catch()"] 091f4fd6_99f9_5891_5a07_db26c7a4eb7d -->|calls| b6165d2f_997d_3c6f_57a3_f2093e2d2b8b 7407a94b_b906_5213_6642_94f913db6381["finally()"] 7407a94b_b906_5213_6642_94f913db6381 -->|calls| b6165d2f_997d_3c6f_57a3_f2093e2d2b8b style b6165d2f_997d_3c6f_57a3_f2093e2d2b8b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/gel-core/query-builders/count.ts lines 49–58
then<TResult1 = number, TResult2 = never>(
onfulfilled?: ((value: number) => TResult1 | PromiseLike<TResult1>) | null | undefined,
onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null | undefined,
): Promise<TResult1 | TResult2> {
return Promise.resolve(this.session.count(this.sql))
.then(
onfulfilled,
onrejected,
);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does then() do?
then() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/query-builders/count.ts.
Where is then() defined?
then() is defined in drizzle-orm/src/gel-core/query-builders/count.ts at line 49.
What calls then()?
then() is called by 2 function(s): catch, finally.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free