PrismaPgPreparedQuery Class — drizzle-orm Architecture
Architecture documentation for the PrismaPgPreparedQuery class in session.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD d48b1f06_cebf_2d3f_5737_639ab46a38ab["PrismaPgPreparedQuery"] 3260517d_a12c_a392_fb71_4aac0c61619f["session.ts"] d48b1f06_cebf_2d3f_5737_639ab46a38ab -->|defined in| 3260517d_a12c_a392_fb71_4aac0c61619f 73b31ffd_66c4_edae_e676_6246f5f45d32["constructor()"] d48b1f06_cebf_2d3f_5737_639ab46a38ab -->|method| 73b31ffd_66c4_edae_e676_6246f5f45d32 93dbe579_3077_2749_c85e_51eb383ad749["execute()"] d48b1f06_cebf_2d3f_5737_639ab46a38ab -->|method| 93dbe579_3077_2749_c85e_51eb383ad749 ed6256ab_fc16_f671_a99c_bd1857da0681["all()"] d48b1f06_cebf_2d3f_5737_639ab46a38ab -->|method| ed6256ab_fc16_f671_a99c_bd1857da0681 7ff8de2c_60ba_da90_0c08_9307093a9f1e["isResponseInArrayMode()"] d48b1f06_cebf_2d3f_5737_639ab46a38ab -->|method| 7ff8de2c_60ba_da90_0c08_9307093a9f1e
Relationship Graph
Source Code
drizzle-orm/src/prisma/pg/session.ts lines 16–40
export class PrismaPgPreparedQuery<T> extends PgPreparedQuery<PreparedQueryConfig & { execute: T }> {
static override readonly [entityKind]: string = 'PrismaPgPreparedQuery';
constructor(
private readonly prisma: PrismaClient,
query: Query,
private readonly logger: Logger,
) {
super(query, undefined, undefined, undefined);
}
override execute(placeholderValues?: Record<string, unknown>): Promise<T> {
const params = fillPlaceholders(this.query.params, placeholderValues ?? {});
this.logger.logQuery(this.query.sql, params);
return this.prisma.$queryRawUnsafe(this.query.sql, ...params);
}
override all(): Promise<unknown> {
throw new Error('Method not implemented.');
}
override isResponseInArrayMode(): boolean {
return false;
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the PrismaPgPreparedQuery class?
PrismaPgPreparedQuery is a class in the drizzle-orm codebase, defined in drizzle-orm/src/prisma/pg/session.ts.
Where is PrismaPgPreparedQuery defined?
PrismaPgPreparedQuery is defined in drizzle-orm/src/prisma/pg/session.ts at line 16.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free