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

Relationship Graph

Source Code

drizzle-orm/src/aws-data-api/pg/session.ts lines 175–191

	constructor(
		/** @internal */
		readonly client: AwsDataApiClient,
		dialect: PgDialect,
		private schema: RelationalSchemaConfig<TSchema> | undefined,
		private options: AwsDataApiSessionOptions,
		/** @internal */
		readonly transactionId: string | undefined,
	) {
		super(dialect);
		this.rawQuery = {
			secretArn: options.secretArn,
			resourceArn: options.resourceArn,
			database: options.database,
		};
		this.cache = options.cache ?? new NoopCache();
	}

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 175.
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