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
  fb91aca1_2260_1070_08a4_6177e167c9b4["constructor()"]
  faab5053_4366_127b_a6e2_27b2fe6c9635["AwsDataApiPreparedQuery"]
  fb91aca1_2260_1070_08a4_6177e167c9b4 -->|defined in| faab5053_4366_127b_a6e2_27b2fe6c9635
  3e2f1f77_62f8_33b1_d599_c97603eafdc9["constructor()"]
  3e2f1f77_62f8_33b1_d599_c97603eafdc9 -->|calls| fb91aca1_2260_1070_08a4_6177e167c9b4
  3e2f1f77_62f8_33b1_d599_c97603eafdc9["constructor()"]
  fb91aca1_2260_1070_08a4_6177e167c9b4 -->|calls| 3e2f1f77_62f8_33b1_d599_c97603eafdc9
  style fb91aca1_2260_1070_08a4_6177e167c9b4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/aws-data-api/pg/session.ts lines 37–65

	constructor(
		private client: AwsDataApiClient,
		private queryString: string,
		private params: unknown[],
		private typings: QueryTypingsValue[],
		private options: AwsDataApiSessionOptions,
		cache: Cache,
		queryMetadata: {
			type: 'select' | 'update' | 'delete' | 'insert';
			tables: string[];
		} | undefined,
		cacheConfig: WithCacheConfig | undefined,
		private fields: SelectedFieldsOrdered | undefined,
		/** @internal */
		readonly transactionId: string | undefined,
		private _isResponseInArrayMode: boolean,
		private customResultMapper?: (rows: unknown[][]) => T['execute'],
	) {
		super({ sql: queryString, params }, cache, queryMetadata, cacheConfig);
		this.rawQuery = new ExecuteStatementCommand({
			sql: queryString,
			parameters: [],
			secretArn: options.secretArn,
			resourceArn: options.resourceArn,
			database: options.database,
			transactionId,
			includeResultMetadata: !fields && !customResultMapper,
		});
	}

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/aws-data-api/pg/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/aws-data-api/pg/session.ts at line 37.
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