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

run() — drizzle-orm Function Reference

Architecture documentation for the run() function in session.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  1d5afe2c_0cde_87b6_9e0e_5be634ac18de["run()"]
  40aea31b_a504_408a_306d_c180ac0ece23["D1PreparedQuery"]
  1d5afe2c_0cde_87b6_9e0e_5be634ac18de -->|defined in| 40aea31b_a504_408a_306d_c180ac0ece23
  81e68548_fd3e_f31c_c3ec_6e4899bef9c5["transaction()"]
  81e68548_fd3e_f31c_c3ec_6e4899bef9c5 -->|calls| 1d5afe2c_0cde_87b6_9e0e_5be634ac18de
  277fa7d6_b402_be2c_9938_c260f7677755["transaction()"]
  277fa7d6_b402_be2c_9938_c260f7677755 -->|calls| 1d5afe2c_0cde_87b6_9e0e_5be634ac18de
  style 1d5afe2c_0cde_87b6_9e0e_5be634ac18de fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/d1/session.ts lines 199–205

	async run(placeholderValues?: Record<string, unknown>): Promise<D1Response> {
		const params = fillPlaceholders(this.query.params, placeholderValues ?? {});
		this.logger.logQuery(this.query.sql, params);
		return await this.queryWithCache(this.query.sql, params, async () => {
			return this.stmt.bind(...params).run();
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does run() do?
run() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/d1/session.ts.
Where is run() defined?
run() is defined in drizzle-orm/src/d1/session.ts at line 199.
What calls run()?
run() is called by 2 function(s): transaction, transaction.

Analyze Your Own Codebase

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

Try Supermodel Free