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
  9790b2b7_cbde_3e69_866f_d233ccb4262d["createSession()"]
  180da515_18c5_736c_a538_c7bb8e47af02["NeonHttpDriver"]
  9790b2b7_cbde_3e69_866f_d233ccb4262d -->|defined in| 180da515_18c5_736c_a538_c7bb8e47af02
  068740e8_2543_b6bc_c68c_e62bdd7764f1["construct()"]
  068740e8_2543_b6bc_c68c_e62bdd7764f1 -->|calls| 9790b2b7_cbde_3e69_866f_d233ccb4262d
  style 9790b2b7_cbde_3e69_866f_d233ccb4262d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/neon-http/driver.ts lines 31–38

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