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
  0aba7bcb_03b6_2624_e8b4_ba0a89c71a07["all()"]
  e50637e8_1588_6115_6b06_72e8d3b48b1b["ExpoSQLitePreparedQuery"]
  0aba7bcb_03b6_2624_e8b4_ba0a89c71a07 -->|defined in| e50637e8_1588_6115_6b06_72e8d3b48b1b
  6076d2b5_8042_3bbc_e19b_17093bb09c8f["values()"]
  0aba7bcb_03b6_2624_e8b4_ba0a89c71a07 -->|calls| 6076d2b5_8042_3bbc_e19b_17093bb09c8f
  style 0aba7bcb_03b6_2624_e8b4_ba0a89c71a07 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/expo-sqlite/session.ts lines 127–140

	all(placeholderValues?: Record<string, unknown>): T['all'] {
		const { fields, joinsNotNullableMap, query, logger, stmt, customResultMapper } = this;
		if (!fields && !customResultMapper) {
			const params = fillPlaceholders(query.params, placeholderValues ?? {});
			logger.logQuery(query.sql, params);
			return stmt.executeSync(params as any[]).getAllSync();
		}

		const rows = this.values(placeholderValues) as unknown[][];
		if (customResultMapper) {
			return customResultMapper(rows) as T['all'];
		}
		return rows.map((row) => mapResultRow(fields!, row, joinsNotNullableMap));
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does all() do?
all() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/expo-sqlite/session.ts.
Where is all() defined?
all() is defined in drizzle-orm/src/expo-sqlite/session.ts at line 127.
What does all() call?
all() calls 1 function(s): values.

Analyze Your Own Codebase

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

Try Supermodel Free