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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  1f506ef5_f916_8c0e_4c27_598524f17b1a["constructor()"]
  776c65da_a3c4_5133_217d_969e536f67b3["Many"]
  1f506ef5_f916_8c0e_4c27_598524f17b1a -->|defined in| 776c65da_a3c4_5133_217d_969e536f67b3
  style 1f506ef5_f916_8c0e_4c27_598524f17b1a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/relations.ts lines 105–111

	constructor(
		sourceTable: Table,
		referencedTable: AnyTable<{ name: TTableName }>,
		readonly config: { relationName: string } | undefined,
	) {
		super(sourceTable, referencedTable, config?.relationName);
	}

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/relations.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/relations.ts at line 105.

Analyze Your Own Codebase

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

Try Supermodel Free