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
  ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828["constructor()"]
  1053eb6c_20a0_7889_a53b_cfa06854e18b["PostgresJsSession"]
  ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828 -->|defined in| 1053eb6c_20a0_7889_a53b_cfa06854e18b
  cd0ea87b_9826_a83c_1a41_f63aae505137["constructor()"]
  cd0ea87b_9826_a83c_1a41_f63aae505137 -->|calls| ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828
  cd0ea87b_9826_a83c_1a41_f63aae505137["constructor()"]
  ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828 -->|calls| cd0ea87b_9826_a83c_1a41_f63aae505137
  style ed6c2e8e_9e75_ec84_4bc9_d121c5ccb828 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/postgres-js/session.ts lines 117–127

	constructor(
		public client: TSQL,
		dialect: PgDialect,
		private schema: RelationalSchemaConfig<TSchema> | undefined,
		/** @internal */
		readonly options: PostgresJsSessionOptions = {},
	) {
		super(dialect);
		this.logger = options.logger ?? new NoopLogger();
		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/postgres-js/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/postgres-js/session.ts at line 117.
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