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

returning() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  ae5b7c9a_656d_20f0_9ae3_a6fde018a835["returning()"]
  8e4153bf_b365_8b49_3724_c65caf9729e7["PgInsertBase"]
  ae5b7c9a_656d_20f0_9ae3_a6fde018a835 -->|defined in| 8e4153bf_b365_8b49_3724_c65caf9729e7
  ed31f2ce_0009_ed78_461d_e5bba26db2ed["returning()"]
  ae5b7c9a_656d_20f0_9ae3_a6fde018a835 -->|calls| ed31f2ce_0009_ed78_461d_e5bba26db2ed
  style ae5b7c9a_656d_20f0_9ae3_a6fde018a835 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/query-builders/insert.ts lines 289–289

	returning(): PgInsertWithout<PgInsertReturningAll<this, TDynamic>, TDynamic, 'returning'>;

Domain

Subdomains

Calls

Frequently Asked Questions

What does returning() do?
returning() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/query-builders/insert.ts.
Where is returning() defined?
returning() is defined in drizzle-orm/src/pg-core/query-builders/insert.ts at line 289.
What does returning() call?
returning() calls 1 function(s): returning.

Analyze Your Own Codebase

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

Try Supermodel Free