Home / Type/ PgInsertPrepare Type — drizzle-orm Architecture

PgInsertPrepare Type — drizzle-orm Architecture

Architecture documentation for the PgInsertPrepare type/interface in insert.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  94062bd5_457b_f0f1_86d9_d39a9551504e["PgInsertPrepare"]
  6f066777_3f37_e9b7_9d78_03e1a3ea895d["insert.ts"]
  94062bd5_457b_f0f1_86d9_d39a9551504e -->|defined in| 6f066777_3f37_e9b7_9d78_03e1a3ea895d
  style 94062bd5_457b_f0f1_86d9_d39a9551504e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

export type PgInsertPrepare<T extends AnyPgInsert> = PgPreparedQuery<
	PreparedQueryConfig & {
		execute: T['_']['returning'] extends undefined ? PgQueryResultKind<T['_']['queryResult'], never>
			: T['_']['returning'][];
	}
>;

Frequently Asked Questions

What is the PgInsertPrepare type?
PgInsertPrepare is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/query-builders/insert.ts.
Where is PgInsertPrepare defined?
PgInsertPrepare is defined in drizzle-orm/src/pg-core/query-builders/insert.ts at line 183.

Analyze Your Own Codebase

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

Try Supermodel Free