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
  a8f38194_c681_a41c_7683_ebe766f2ab05["constructor()"]
  ab3cb454_82e9_2f1c_b29d_f8d94ea06ccc["PreparedQuery"]
  a8f38194_c681_a41c_7683_ebe766f2ab05 -->|defined in| ab3cb454_82e9_2f1c_b29d_f8d94ea06ccc
  b7304cb8_b321_4303_73a9_79485d79acfd["constructor()"]
  b7304cb8_b321_4303_73a9_79485d79acfd -->|calls| a8f38194_c681_a41c_7683_ebe766f2ab05
  b7304cb8_b321_4303_73a9_79485d79acfd["constructor()"]
  a8f38194_c681_a41c_7683_ebe766f2ab05 -->|calls| b7304cb8_b321_4303_73a9_79485d79acfd
  style a8f38194_c681_a41c_7683_ebe766f2ab05 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-proxy/session.ts lines 109–128

	constructor(
		private client: RemoteCallback,
		private queryString: string,
		private params: unknown[],
		private logger: Logger,
		cache: Cache,
		queryMetadata: {
			type: 'select' | 'update' | 'delete' | 'insert';
			tables: string[];
		} | undefined,
		cacheConfig: WithCacheConfig | undefined,
		private fields: SelectedFieldsOrdered | undefined,
		private customResultMapper?: (rows: unknown[][]) => T['execute'],
		// Keys that were used in $default and the value that was generated for them
		private generatedIds?: Record<string, unknown>[],
		// Keys that should be returned, it has the column with all properries + key from object
		private returningIds?: SelectedFieldsOrdered,
	) {
		super(cache, queryMetadata, cacheConfig);
	}

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-proxy/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/mysql-proxy/session.ts at line 109.
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