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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  8092af2d_db89_05e1_7e61_aafdbf30dbb7["constructor()"]
  6445d9e1_77f2_40aa_77c4_9c61ce1b7aef["IndexBuilder"]
  8092af2d_db89_05e1_7e61_aafdbf30dbb7 -->|defined in| 6445d9e1_77f2_40aa_77c4_9c61ce1b7aef
  6875ccf4_ca78_c367_0fb9_9062d8cfaee1["constructor()"]
  6875ccf4_ca78_c367_0fb9_9062d8cfaee1 -->|calls| 8092af2d_db89_05e1_7e61_aafdbf30dbb7
  6875ccf4_ca78_c367_0fb9_9062d8cfaee1["constructor()"]
  8092af2d_db89_05e1_7e61_aafdbf30dbb7 -->|calls| 6875ccf4_ca78_c367_0fb9_9062d8cfaee1
  style 8092af2d_db89_05e1_7e61_aafdbf30dbb7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/gel-core/indexes.ts lines 202–216

	constructor(
		columns: Partial<IndexedColumn | SQL>[],
		unique: boolean,
		only: boolean,
		name?: string,
		method: string = 'btree',
	) {
		this.config = {
			name,
			columns,
			unique,
			only,
			method,
		};
	}

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/gel-core/indexes.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/gel-core/indexes.ts at line 202.
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