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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f63b391f_211d_298e_7bc0_f1fa6375af56["constructor()"]
  9c439714_8e39_1639_8142_88b4c0b4c345["ForeignKey"]
  f63b391f_211d_298e_7bc0_f1fa6375af56 -->|defined in| 9c439714_8e39_1639_8142_88b4c0b4c345
  14b75bec_c6d2_112a_fdd2_de9418de1303["constructor()"]
  14b75bec_c6d2_112a_fdd2_de9418de1303 -->|calls| f63b391f_211d_298e_7bc0_f1fa6375af56
  14b75bec_c6d2_112a_fdd2_de9418de1303["constructor()"]
  f63b391f_211d_298e_7bc0_f1fa6375af56 -->|calls| 14b75bec_c6d2_112a_fdd2_de9418de1303
  style f63b391f_211d_298e_7bc0_f1fa6375af56 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/foreign-keys.ts lines 73–77

	constructor(readonly table: MySqlTable, builder: ForeignKeyBuilder) {
		this.reference = builder.reference;
		this.onUpdate = builder._onUpdate;
		this.onDelete = builder._onDelete;
	}

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/mysql-core/foreign-keys.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/mysql-core/foreign-keys.ts at line 73.
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