all() — drizzle-orm Function Reference
Architecture documentation for the all() function in session.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 1786b434_9304_ff29_cf11_2153c974d8ec["all()"] 2c4d0f43_8e7b_aeb6_a9d5_fb15fdd1555b["BunSQLPreparedQuery"] 1786b434_9304_ff29_cf11_2153c974d8ec -->|defined in| 2c4d0f43_8e7b_aeb6_a9d5_fb15fdd1555b style 1786b434_9304_ff29_cf11_2153c974d8ec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/bun-sql/session.ts lines 79–97
all(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['all']> {
return tracer.startActiveSpan('drizzle.execute', async (span) => {
const params = fillPlaceholders(this.params, placeholderValues);
span?.setAttributes({
'drizzle.query.text': this.queryString,
'drizzle.query.params': JSON.stringify(params),
});
this.logger.logQuery(this.queryString, params);
return tracer.startActiveSpan('drizzle.driver.execute', async () => {
span?.setAttributes({
'drizzle.query.text': this.queryString,
'drizzle.query.params': JSON.stringify(params),
});
return await this.queryWithCache(this.queryString, params, async () => {
return await this.client.unsafe(this.queryString, params as any[]);
});
});
});
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does all() do?
all() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/bun-sql/session.ts.
Where is all() defined?
all() is defined in drizzle-orm/src/bun-sql/session.ts at line 79.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free