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 37a67c64_be88_efea_e0f4_79037ba94146["then()"] 7ca41881_9524_bd95_d93b_aa44d5e89fa7["MySqlCountBuilder"] 37a67c64_be88_efea_e0f4_79037ba94146 -->|defined in| 7ca41881_9524_bd95_d93b_aa44d5e89fa7 1c183101_f541_2bbd_103e_26e43888380f["catch()"] 1c183101_f541_2bbd_103e_26e43888380f -->|calls| 37a67c64_be88_efea_e0f4_79037ba94146 2057f344_8505_6fb5_350e_43674c3b291a["finally()"] 2057f344_8505_6fb5_350e_43674c3b291a -->|calls| 37a67c64_be88_efea_e0f4_79037ba94146 style 37a67c64_be88_efea_e0f4_79037ba94146 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/query-builders/count.ts lines 50–59
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/mysql-core/query-builders/count.ts.
Where is then() defined?
then() is defined in drizzle-orm/src/mysql-core/query-builders/count.ts at line 50.
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