Home / Function/ createSession() — drizzle-orm Function Reference

createSession() — drizzle-orm Function Reference

Architecture documentation for the createSession() function in driver.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  dcc73275_3c1a_7ddb_7b9b_1f63ec3d36e5["createSession()"]
  ac8baf50_aa31_10a4_aab5_7d0c82a1742a["NodePgDriver"]
  dcc73275_3c1a_7ddb_7b9b_1f63ec3d36e5 -->|defined in| ac8baf50_aa31_10a4_aab5_7d0c82a1742a
  226e224f_f0a8_06f1_40cc_c34d7ea89dfa["construct()"]
  226e224f_f0a8_06f1_40cc_c34d7ea89dfa -->|calls| dcc73275_3c1a_7ddb_7b9b_1f63ec3d36e5
  style dcc73275_3c1a_7ddb_7b9b_1f63ec3d36e5 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/node-postgres/driver.ts lines 33–40

	createSession(
		schema: RelationalSchemaConfig<TablesRelationalConfig> | undefined,
	): NodePgSession<Record<string, unknown>, TablesRelationalConfig> {
		return new NodePgSession(this.client, this.dialect, schema, {
			logger: this.options.logger,
			cache: this.options.cache,
		});
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does createSession() do?
createSession() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/node-postgres/driver.ts.
Where is createSession() defined?
createSession() is defined in drizzle-orm/src/node-postgres/driver.ts at line 33.
What calls createSession()?
createSession() is called by 1 function(s): construct.

Analyze Your Own Codebase

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

Try Supermodel Free