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

insert() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2dfa5289_723e_ca21_62bb_5086546fc2fc["insert()"]
  2d57d0b7_4a77_af8e_8027_62a4fb11f803["GelDatabase"]
  2dfa5289_723e_ca21_62bb_5086546fc2fc -->|defined in| 2d57d0b7_4a77_af8e_8027_62a4fb11f803
  de082ae7_ed27_1ff7_a0ea_26b4841c3633["with()"]
  de082ae7_ed27_1ff7_a0ea_26b4841c3633 -->|calls| 2dfa5289_723e_ca21_62bb_5086546fc2fc
  d2020b13_06e0_e575_3703_4a78bd11a479["withReplicas()"]
  d2020b13_06e0_e575_3703_4a78bd11a479 -->|calls| 2dfa5289_723e_ca21_62bb_5086546fc2fc
  style 2dfa5289_723e_ca21_62bb_5086546fc2fc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/db.ts lines 560–562

	insert<TTable extends GelTable>(table: TTable): GelInsertBuilder<TTable, TQueryResult> {
		return new GelInsertBuilder(table, this.session, this.dialect);
	}

Domain

Subdomains

Frequently Asked Questions

What does insert() do?
insert() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/db.ts.
Where is insert() defined?
insert() is defined in drizzle-orm/src/gel-core/db.ts at line 560.
What calls insert()?
insert() is called by 2 function(s): with, withReplicas.

Analyze Your Own Codebase

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

Try Supermodel Free