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
  f208f001_4e84_0d7a_f8fa_ea9e66a49ccf["constructor()"]
  4211462d_124d_57bd_dbdd_87a3fb88aa42["PreparedQuery"]
  f208f001_4e84_0d7a_f8fa_ea9e66a49ccf -->|defined in| 4211462d_124d_57bd_dbdd_87a3fb88aa42
  3910638f_c3a5_d9f6_3cab_b956135497da["constructor()"]
  3910638f_c3a5_d9f6_3cab_b956135497da -->|calls| f208f001_4e84_0d7a_f8fa_ea9e66a49ccf
  3910638f_c3a5_d9f6_3cab_b956135497da["constructor()"]
  f208f001_4e84_0d7a_f8fa_ea9e66a49ccf -->|calls| 3910638f_c3a5_d9f6_3cab_b956135497da
  style f208f001_4e84_0d7a_f8fa_ea9e66a49ccf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/better-sqlite3/session.ts lines 111–127

	constructor(
		private stmt: Statement,
		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,
		private customResultMapper?: (rows: unknown[][]) => unknown,
	) {
		super('sync', executeMethod, query, 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/better-sqlite3/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/better-sqlite3/session.ts at line 111.
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