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
  bc4c2868_99c1_fc77_3962_0ca96de82327["constructor()"]
  5a015744_9261_7efe_f6db_2bc9413b3057["MySql2Session"]
  bc4c2868_99c1_fc77_3962_0ca96de82327 -->|defined in| 5a015744_9261_7efe_f6db_2bc9413b3057
  ec0bb7b5_2f95_b9d6_3de6_5ebfc0bd1bb8["constructor()"]
  ec0bb7b5_2f95_b9d6_3de6_5ebfc0bd1bb8 -->|calls| bc4c2868_99c1_fc77_3962_0ca96de82327
  069cf89f_fe99_3511_ba3b_a0d39c547d88["constructor()"]
  069cf89f_fe99_3511_ba3b_a0d39c547d88 -->|calls| bc4c2868_99c1_fc77_3962_0ca96de82327
  ec0bb7b5_2f95_b9d6_3de6_5ebfc0bd1bb8["constructor()"]
  bc4c2868_99c1_fc77_3962_0ca96de82327 -->|calls| ec0bb7b5_2f95_b9d6_3de6_5ebfc0bd1bb8
  style bc4c2868_99c1_fc77_3962_0ca96de82327 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql2/session.ts lines 214–224

	constructor(
		private client: MySql2Client,
		dialect: MySqlDialect,
		private schema: RelationalSchemaConfig<TSchema> | undefined,
		private options: MySql2SessionOptions,
	) {
		super(dialect);
		this.logger = options.logger ?? new NoopLogger();
		this.cache = options.cache ?? new NoopCache();
		this.mode = options.mode;
	}

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql2/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/mysql2/session.ts at line 214.
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