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
  039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7["constructor()"]
  486e13d3_89ef_e06a_f7a7_851ffe592e35["PgRelationalQuery"]
  039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7 -->|defined in| 486e13d3_89ef_e06a_f7a7_851ffe592e35
  88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31["constructor()"]
  88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31 -->|calls| 039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7
  88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31["constructor()"]
  039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7 -->|calls| 88a907f9_88f6_e2ff_6a31_2c4a5e8e9a31
  style 039cd8b3_d204_a5a6_3d6b_b8ba4e0e03f7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/query-builders/query.ts lines 75–87

	constructor(
		private fullSchema: Record<string, unknown>,
		private schema: TablesRelationalConfig,
		private tableNamesMap: Record<string, string>,
		private table: PgTable,
		private tableConfig: TableRelationalConfig,
		private dialect: PgDialect,
		private session: PgSession,
		private config: DBQueryConfig<'many', true> | true,
		private mode: 'many' | 'first',
	) {
		super();
	}

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 75.
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