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

constructor() — drizzle-orm Function Reference

Architecture documentation for the constructor() function in query.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31["constructor()"]
  00b41c4f_4e02_f219_eb9d_a3e981ad9878["RelationalQueryBuilder"]
  88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31 -->|defined in| 00b41c4f_4e02_f219_eb9d_a3e981ad9878
  039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7["constructor()"]
  039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7 -->|calls| 88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31
  039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7["constructor()"]
  88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31 -->|calls| 039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7
  style 88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/query-builders/query.ts lines 22–30

	constructor(
		private fullSchema: Record<string, unknown>,
		private schema: TSchema,
		private tableNamesMap: Record<string, string>,
		private table: PgTable,
		private tableConfig: TableRelationalConfig,
		private dialect: PgDialect,
		private session: PgSession,
	) {}

Domain

Subdomains

Called By

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free