Home / Function/ constructor() — drizzle-orm Function Reference

constructor() — drizzle-orm Function Reference

Architecture documentation for the constructor() function in raw.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  f4ce9290_7ced_9226_7a43_70031c26e648["constructor()"]
  a935110e_e537_e28c_f0aa_3a9eb325614b["SQLiteRaw"]
  f4ce9290_7ced_9226_7a43_70031c26e648 -->|defined in| a935110e_e537_e28c_f0aa_3a9eb325614b
  7ce438a6_6611_0d05_6d20_fb371e2d97c8["constructor()"]
  7ce438a6_6611_0d05_6d20_fb371e2d97c8 -->|calls| f4ce9290_7ced_9226_7a43_70031c26e648
  style f4ce9290_7ced_9226_7a43_70031c26e648 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/query-builders/raw.ts lines 28–38

	constructor(
		public execute: () => Promise<TResult>,
		/** @internal */
		public getSQL: () => SQL,
		action: SQLiteRawAction,
		private dialect: SQLiteAsyncDialect,
		private mapBatchResult: (result: unknown) => unknown,
	) {
		super();
		this.config = { action };
	}

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-core/query-builders/raw.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/sqlite-core/query-builders/raw.ts at line 28.
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