Home / Function/ finally() — drizzle-orm Function Reference

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
  7407a94b_b906_5213_6642_94f913db6381["finally()"]
  d01b7d32_c197_dd65_acbf_7910bdd5edfa["GelCountBuilder"]
  7407a94b_b906_5213_6642_94f913db6381 -->|defined in| d01b7d32_c197_dd65_acbf_7910bdd5edfa
  b6165d2f_997d_3c6f_57a3_f2093e2d2b8b["then()"]
  7407a94b_b906_5213_6642_94f913db6381 -->|calls| b6165d2f_997d_3c6f_57a3_f2093e2d2b8b
  style 7407a94b_b906_5213_6642_94f913db6381 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/query-builders/count.ts lines 66–77

	finally(onFinally?: (() => void) | null | undefined): Promise<number> {
		return this.then(
			(value) => {
				onFinally?.();
				return value;
			},
			(reason) => {
				onFinally?.();
				throw reason;
			},
		);
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does finally() do?
finally() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/query-builders/count.ts.
Where is finally() defined?
finally() is defined in drizzle-orm/src/gel-core/query-builders/count.ts at line 66.
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