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 2fa4349f_f6d2_cac7_e5bf_e0268c947b66["all()"] a4acd949_ab02_6f38_cd17_6c3ae9b1224c["GelDbPreparedQuery"] 2fa4349f_f6d2_cac7_e5bf_e0268c947b66 -->|defined in| a4acd949_ab02_6f38_cd17_6c3ae9b1224c style 2fa4349f_f6d2_cac7_e5bf_e0268c947b66 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/gel/session.ts lines 77–96
async all(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['all']> {
return await tracer.startActiveSpan('drizzle.execute', async () => {
const params = fillPlaceholders(this.params, placeholderValues);
this.logger.logQuery(this.queryString, params);
return await tracer.startActiveSpan('drizzle.driver.execute', async (span) => {
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.withSQLRowMode('array').querySQL(
this.queryString,
params.length ? params : undefined,
).then((
result,
) => result);
});
});
});
}
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/gel/session.ts.
Where is all() defined?
all() is defined in drizzle-orm/src/gel/session.ts at line 77.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free