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
  8b3a8bf6_16e6_6534_71f7_87971008b30a["constructor()"]
  16b981b5_3bbc_75b1_a0c4_72a6e30323d2["PreparedQuery"]
  8b3a8bf6_16e6_6534_71f7_87971008b30a -->|defined in| 16b981b5_3bbc_75b1_a0c4_72a6e30323d2
  1ea8908a_d2e7_96c8_94e9_5aa4d4c776ef["constructor()"]
  1ea8908a_d2e7_96c8_94e9_5aa4d4c776ef -->|calls| 8b3a8bf6_16e6_6534_71f7_87971008b30a
  1ea8908a_d2e7_96c8_94e9_5aa4d4c776ef["constructor()"]
  8b3a8bf6_16e6_6534_71f7_87971008b30a -->|calls| 1ea8908a_d2e7_96c8_94e9_5aa4d4c776ef
  style 8b3a8bf6_16e6_6534_71f7_87971008b30a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-proxy/session.ts lines 94–111

	constructor(
		private client: RemoteCallback,
		private queryString: string,
		private params: unknown[],
		private typings: any[] | undefined,
		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

Called By

Frequently Asked Questions

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