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

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
  429a17f2_9159_fa9c_2f02_6bbe8e07e774["all()"]
  b5211596_b01a_8163_ac2a_e294cfd2534a["PostgresJsPreparedQuery"]
  429a17f2_9159_fa9c_2f02_6bbe8e07e774 -->|defined in| b5211596_b01a_8163_ac2a_e294cfd2534a
  style 429a17f2_9159_fa9c_2f02_6bbe8e07e774 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/postgres-js/session.ts lines 76–94

	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', () => {
				span?.setAttributes({
					'drizzle.query.text': this.queryString,
					'drizzle.query.params': JSON.stringify(params),
				});
				return this.queryWithCache(this.queryString, params, async () => {
					return this.client.unsafe(this.queryString, params as any[]);
				});
			});
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does all() do?
all() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/postgres-js/session.ts.
Where is all() defined?
all() is defined in drizzle-orm/src/postgres-js/session.ts at line 76.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free