query-promise.ts — drizzle-orm Source File
Architecture documentation for query-promise.ts, a typescript file in the drizzle-orm codebase. 1 imports, 0 dependents.
Entity Profile
Dependency Diagram
graph LR e1280dcc_29b2_e438_043c_d49dd7250745["query-promise.ts"] 27705a9d_afe9_57dd_8c97_e52d8a67d426["entity.ts"] e1280dcc_29b2_e438_043c_d49dd7250745 --> 27705a9d_afe9_57dd_8c97_e52d8a67d426 style e1280dcc_29b2_e438_043c_d49dd7250745 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import { entityKind } from '~/entity.ts';
export abstract class QueryPromise<T> implements Promise<T> {
static readonly [entityKind]: string = 'QueryPromise';
[Symbol.toStringTag] = 'QueryPromise';
catch<TResult = never>(
onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null | undefined,
): Promise<T | TResult> {
return this.then(undefined, onRejected);
}
finally(onFinally?: (() => void) | null | undefined): Promise<T> {
return this.then(
(value) => {
onFinally?.();
return value;
},
(reason) => {
onFinally?.();
throw reason;
},
);
}
then<TResult1 = T, TResult2 = never>(
onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | undefined | null,
onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null,
): Promise<TResult1 | TResult2> {
return this.execute().then(onFulfilled, onRejected);
}
abstract execute(): Promise<T>;
}
Dependencies
- entity.ts
Source
Frequently Asked Questions
What does query-promise.ts do?
query-promise.ts is a source file in the drizzle-orm codebase, written in typescript.
What does query-promise.ts depend on?
query-promise.ts imports 1 module(s): entity.ts.
Where is query-promise.ts in the architecture?
query-promise.ts is located at drizzle-orm/src/query-promise.ts (directory: drizzle-orm/src).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free