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

constructor() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6bbdb213_e75f_13c8_d096_366f7a96982a["constructor()"]
  116b9e1a_aec8_0e35_a7cb_40d3a24bc48c["TiDBServerlessSession"]
  6bbdb213_e75f_13c8_d096_366f7a96982a -->|defined in| 116b9e1a_aec8_0e35_a7cb_40d3a24bc48c
  320aa33a_88e4_c188_84e8_7310de786130["constructor()"]
  320aa33a_88e4_c188_84e8_7310de786130 -->|calls| 6bbdb213_e75f_13c8_d096_366f7a96982a
  e591ae4d_fc1c_912e_f7aa_b060f49ed8c2["constructor()"]
  e591ae4d_fc1c_912e_f7aa_b060f49ed8c2 -->|calls| 6bbdb213_e75f_13c8_d096_366f7a96982a
  e591ae4d_fc1c_912e_f7aa_b060f49ed8c2["constructor()"]
  6bbdb213_e75f_13c8_d096_366f7a96982a -->|calls| e591ae4d_fc1c_912e_f7aa_b060f49ed8c2
  style 6bbdb213_e75f_13c8_d096_366f7a96982a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/tidb-serverless/session.ts lines 119–130

	constructor(
		private baseClient: Connection,
		dialect: MySqlDialect,
		tx: Tx | undefined,
		private schema: RelationalSchemaConfig<TSchema> | undefined,
		private options: TiDBServerlessSessionOptions = {},
	) {
		super(dialect);
		this.client = tx ?? baseClient;
		this.logger = options.logger ?? new NoopLogger();
		this.cache = options.cache ?? new NoopCache();
	}

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/tidb-serverless/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/tidb-serverless/session.ts at line 119.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 2 function(s): constructor, constructor.

Analyze Your Own Codebase

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

Try Supermodel Free