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
  8789fdb6_dd17_dd4a_15bc_d5c10c1c2e1c["constructor()"]
  ff6327fa_3ca0_d8aa_5802_e6bcba97a470["RemotePreparedQuery"]
  8789fdb6_dd17_dd4a_15bc_d5c10c1c2e1c -->|defined in| ff6327fa_3ca0_d8aa_5802_e6bcba97a470
  0de67764_999f_72ca_d69f_9a54e0f52fd3["constructor()"]
  0de67764_999f_72ca_d69f_9a54e0f52fd3 -->|calls| 8789fdb6_dd17_dd4a_15bc_d5c10c1c2e1c
  0de67764_999f_72ca_d69f_9a54e0f52fd3["constructor()"]
  8789fdb6_dd17_dd4a_15bc_d5c10c1c2e1c -->|calls| 0de67764_999f_72ca_d69f_9a54e0f52fd3
  style 8789fdb6_dd17_dd4a_15bc_d5c10c1c2e1c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/sqlite-proxy/session.ts lines 150–171

	constructor(
		private client: RemoteCallback,
		query: Query,
		private logger: Logger,
		cache: Cache,
		queryMetadata: {
			type: 'select' | 'update' | 'delete' | 'insert';
			tables: string[];
		} | undefined,
		cacheConfig: WithCacheConfig | undefined,
		private fields: SelectedFieldsOrdered | undefined,
		executeMethod: SQLiteExecuteMethod,
		private _isResponseInArrayMode: boolean,
		/** @internal */ public customResultMapper?: (
			rows: unknown[][],
			mapColumnValue?: (value: unknown) => unknown,
		) => unknown,
	) {
		super('async', executeMethod, query, cache, queryMetadata, cacheConfig);
		this.customResultMapper = customResultMapper;
		this.method = executeMethod;
	}

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