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
  892458e5_c727_756d_48cf_9ce867f8280a["constructor()"]
  c379869d_eae7_28c1_b5ff_21c36a0fef11["NodePgSession"]
  892458e5_c727_756d_48cf_9ce867f8280a -->|defined in| c379869d_eae7_28c1_b5ff_21c36a0fef11
  0a722b68_488a_f768_1c0b_6058f0b0f772["constructor()"]
  0a722b68_488a_f768_1c0b_6058f0b0f772 -->|calls| 892458e5_c727_756d_48cf_9ce867f8280a
  5cde7d2f_1d77_007b_1e3a_075e15f86137["constructor()"]
  5cde7d2f_1d77_007b_1e3a_075e15f86137 -->|calls| 892458e5_c727_756d_48cf_9ce867f8280a
  0a722b68_488a_f768_1c0b_6058f0b0f772["constructor()"]
  892458e5_c727_756d_48cf_9ce867f8280a -->|calls| 0a722b68_488a_f768_1c0b_6058f0b0f772
  style 892458e5_c727_756d_48cf_9ce867f8280a fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/node-postgres/session.ts lines 210–219

	constructor(
		private client: NodePgClient,
		dialect: PgDialect,
		private schema: RelationalSchemaConfig<TSchema> | undefined,
		private options: NodePgSessionOptions = {},
	) {
		super(dialect);
		this.logger = options.logger ?? new NoopLogger();
		this.cache = options.cache ?? new NoopCache();
	}

Domain

Subdomains

Frequently Asked Questions

What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/node-postgres/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/node-postgres/session.ts at line 210.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 2 function(s): constructor, constructor.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free