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
  cc9b2a5b_2214_09d1_ead9_b5335b86eeee["createSession()"]
  429359f2_9bec_4120_77e7_5ca1241ac861["GelDriver"]
  cc9b2a5b_2214_09d1_ead9_b5335b86eeee -->|defined in| 429359f2_9bec_4120_77e7_5ca1241ac861
  ff209639_b46d_95bc_ccdb_6ec0819cea71["construct()"]
  ff209639_b46d_95bc_ccdb_6ec0819cea71 -->|calls| cc9b2a5b_2214_09d1_ead9_b5335b86eeee
  style cc9b2a5b_2214_09d1_ead9_b5335b86eeee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	createSession(
		schema: RelationalSchemaConfig<TablesRelationalConfig> | undefined,
	): GelDbSession<Record<string, unknown>, TablesRelationalConfig> {
		return new GelDbSession(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/gel/driver.ts.
Where is createSession() defined?
createSession() is defined in drizzle-orm/src/gel/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