finally() — drizzle-orm Function Reference
Architecture documentation for the finally() function in count.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 2057f344_8505_6fb5_350e_43674c3b291a["finally()"] 7ca41881_9524_bd95_d93b_aa44d5e89fa7["MySqlCountBuilder"] 2057f344_8505_6fb5_350e_43674c3b291a -->|defined in| 7ca41881_9524_bd95_d93b_aa44d5e89fa7 37a67c64_be88_efea_e0f4_79037ba94146["then()"] 2057f344_8505_6fb5_350e_43674c3b291a -->|calls| 37a67c64_be88_efea_e0f4_79037ba94146 style 2057f344_8505_6fb5_350e_43674c3b291a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/query-builders/count.ts lines 67–78
finally(onFinally?: (() => void) | null | undefined): Promise<number> {
return this.then(
(value) => {
onFinally?.();
return value;
},
(reason) => {
onFinally?.();
throw reason;
},
);
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does finally() do?
finally() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/query-builders/count.ts.
Where is finally() defined?
finally() is defined in drizzle-orm/src/mysql-core/query-builders/count.ts at line 67.
What does finally() call?
finally() calls 1 function(s): then.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free