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

withReturning() — drizzle-orm Function Reference

Architecture documentation for the withReturning() function in insert.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  fff25b84_b470_718f_e453_7c43746a315c["withReturning()"]
  69561396_7f36_af88_2d2b_7036d4d8de51["insert.ts"]
  fff25b84_b470_718f_e453_7c43746a315c -->|defined in| 69561396_7f36_af88_2d2b_7036d4d8de51
  style fff25b84_b470_718f_e453_7c43746a315c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/type-tests/pg/insert.ts lines 190–192

	function withReturning<T extends PgInsert>(qb: T) {
		return qb.returning();
	}

Domain

Subdomains

Frequently Asked Questions

What does withReturning() do?
withReturning() is a function in the drizzle-orm codebase, defined in drizzle-orm/type-tests/pg/insert.ts.
Where is withReturning() defined?
withReturning() is defined in drizzle-orm/type-tests/pg/insert.ts at line 190.

Analyze Your Own Codebase

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

Try Supermodel Free