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
  4da55603_0df9_fe8e_e7fc_88c62d736b66["all()"]
  b1ecfc7b_8f56_6df4_7a24_c6d1f8b2d849["NodePgPreparedQuery"]
  4da55603_0df9_fe8e_e7fc_88c62d736b66 -->|defined in| b1ecfc7b_8f56_6df4_7a24_c6d1f8b2d849
  style 4da55603_0df9_fe8e_e7fc_88c62d736b66 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/node-postgres/session.ts lines 173–188

	all(placeholderValues: Record<string, unknown> | undefined = {}): Promise<T['all']> {
		return tracer.startActiveSpan('drizzle.execute', () => {
			const params = fillPlaceholders(this.params, placeholderValues);
			this.logger.logQuery(this.rawQueryConfig.text, params);
			return tracer.startActiveSpan('drizzle.driver.execute', (span) => {
				span?.setAttributes({
					'drizzle.query.name': this.rawQueryConfig.name,
					'drizzle.query.text': this.rawQueryConfig.text,
					'drizzle.query.params': JSON.stringify(params),
				});
				return this.queryWithCache(this.rawQueryConfig.text, params, async () => {
					return this.client.query(this.rawQueryConfig, params);
				}).then((result) => result.rows);
			});
		});
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free