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
  aa47825d_ab1c_9b7b_3454_c4e8bf9c564e["constructor()"]
  f7a3a747_96d4_b9ca_d4cb_e28899a93b1c["PgliteSession"]
  aa47825d_ab1c_9b7b_3454_c4e8bf9c564e -->|defined in| f7a3a747_96d4_b9ca_d4cb_e28899a93b1c
  32317230_ac94_8d98_5736_7eec79c0f89d["constructor()"]
  32317230_ac94_8d98_5736_7eec79c0f89d -->|calls| aa47825d_ab1c_9b7b_3454_c4e8bf9c564e
  3507c4a2_80b9_9227_31d3_d0e14ede97b7["constructor()"]
  3507c4a2_80b9_9227_31d3_d0e14ede97b7 -->|calls| aa47825d_ab1c_9b7b_3454_c4e8bf9c564e
  32317230_ac94_8d98_5736_7eec79c0f89d["constructor()"]
  aa47825d_ab1c_9b7b_3454_c4e8bf9c564e -->|calls| 32317230_ac94_8d98_5736_7eec79c0f89d
  style aa47825d_ab1c_9b7b_3454_c4e8bf9c564e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pglite/session.ts lines 132–141

	constructor(
		private client: PgliteClient | Transaction,
		dialect: PgDialect,
		private schema: RelationalSchemaConfig<TSchema> | undefined,
		private options: PgliteSessionOptions = {},
	) {
		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/pglite/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/pglite/session.ts at line 132.
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