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 b29a7944_45a2_47f0_383e_b204024ccb48["createSession()"] 071d4e56_89e9_3cf8_8a3a_b5c07a48114c["NeonDriver"] b29a7944_45a2_47f0_383e_b204024ccb48 -->|defined in| 071d4e56_89e9_3cf8_8a3a_b5c07a48114c 500ce032_ed8a_720f_f17a_8237f8fc187a["construct()"] 500ce032_ed8a_720f_f17a_8237f8fc187a -->|calls| b29a7944_45a2_47f0_383e_b204024ccb48 style b29a7944_45a2_47f0_383e_b204024ccb48 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/neon-serverless/driver.ts lines 33–40
createSession(
schema: RelationalSchemaConfig<TablesRelationalConfig> | undefined,
): NeonSession<Record<string, unknown>, TablesRelationalConfig> {
return new NeonSession(this.client, this.dialect, schema, {
logger: this.options.logger,
cache: this.options.cache,
});
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does createSession() do?
createSession() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/neon-serverless/driver.ts.
Where is createSession() defined?
createSession() is defined in drizzle-orm/src/neon-serverless/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