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
  55effa5b_df41_441f_c96f_ecc55ff7c601["constructor()"]
  0b6e39dc_7591_588c_346e_a99fa74bc8fe["NeonHttpPreparedQuery"]
  55effa5b_df41_441f_c96f_ecc55ff7c601 -->|defined in| 0b6e39dc_7591_588c_346e_a99fa74bc8fe
  37187cd9_e965_fbe8_eb2c_d5e0d5aeac10["constructor()"]
  37187cd9_e965_fbe8_eb2c_d5e0d5aeac10 -->|calls| 55effa5b_df41_441f_c96f_ecc55ff7c601
  37187cd9_e965_fbe8_eb2c_d5e0d5aeac10["constructor()"]
  55effa5b_df41_441f_c96f_ecc55ff7c601 -->|calls| 37187cd9_e965_fbe8_eb2c_d5e0d5aeac10
  style 55effa5b_df41_441f_c96f_ecc55ff7c601 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/neon-http/session.ts lines 33–52

	constructor(
		private client: NeonHttpClient,
		query: Query,
		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(query, cache, queryMetadata, cacheConfig);
		// `client.query` is for @neondatabase/serverless v1.0.0 and up, where the
		// root query function `client` is only usable as a template function;
		// `client` is a fallback for earlier versions
		this.clientQuery = (client as any).query ?? client as any;
	}

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