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
  cd0ea87b_9826_a83c_1a41_f63aae505137["constructor()"]
  b5211596_b01a_8163_ac2a_e294cfd2534a["PostgresJsPreparedQuery"]
  cd0ea87b_9826_a83c_1a41_f63aae505137 -->|defined in| b5211596_b01a_8163_ac2a_e294cfd2534a
  ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828["constructor()"]
  ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828 -->|calls| cd0ea87b_9826_a83c_1a41_f63aae505137
  4c66ec52_e221_f772_0f02_2fefbba6ab5f["constructor()"]
  4c66ec52_e221_f772_0f02_2fefbba6ab5f -->|calls| cd0ea87b_9826_a83c_1a41_f63aae505137
  ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828["constructor()"]
  cd0ea87b_9826_a83c_1a41_f63aae505137 -->|calls| ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828
  style cd0ea87b_9826_a83c_1a41_f63aae505137 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/postgres-js/session.ts lines 20–36

	constructor(
		private client: Sql,
		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 _isResponseInArrayMode: boolean,
		private customResultMapper?: (rows: unknown[][]) => T['execute'],
	) {
		super({ sql: queryString, params }, cache, queryMetadata, cacheConfig);
	}

Domain

Subdomains

Frequently Asked Questions

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