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
  c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f["constructor()"]
  c2d257fe_c7e1_f3d2_0b3e_6513a71b51aa["LibSQLPreparedQuery"]
  c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f -->|defined in| c2d257fe_c7e1_f3d2_0b3e_6513a71b51aa
  bb8f3a3a_9b88_1e1a_494c_b9555048f0e2["constructor()"]
  bb8f3a3a_9b88_1e1a_494c_b9555048f0e2 -->|calls| c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f
  bb8f3a3a_9b88_1e1a_494c_b9555048f0e2["constructor()"]
  c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f -->|calls| bb8f3a3a_9b88_1e1a_494c_b9555048f0e2
  style c73bd0ae_cb97_f3c4_2617_eb9cf1c5cd4f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/libsql/session.ts lines 170–192

	constructor(
		private client: Client,
		query: Query,
		private logger: Logger,
		cache: Cache,
		queryMetadata: {
			type: 'select' | 'update' | 'delete' | 'insert';
			tables: string[];
		} | undefined,
		cacheConfig: WithCacheConfig | undefined,
		/** @internal */ public fields: SelectedFieldsOrdered | undefined,
		private tx: Transaction | 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.fields = fields;
	}

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