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 75ffa976_89a3_e4e8_2ef4_e79c39ec7b87["createSession()"] 1106313c_bcf3_0ab0_c896_9be1c26c5a80["PgliteDriver"] 75ffa976_89a3_e4e8_2ef4_e79c39ec7b87 -->|defined in| 1106313c_bcf3_0ab0_c896_9be1c26c5a80 53fe8589_37a4_1206_812e_4e321d233cee["construct()"] 53fe8589_37a4_1206_812e_4e321d233cee -->|calls| 75ffa976_89a3_e4e8_2ef4_e79c39ec7b87 style 75ffa976_89a3_e4e8_2ef4_e79c39ec7b87 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pglite/driver.ts lines 33–40
createSession(
schema: RelationalSchemaConfig<TablesRelationalConfig> | undefined,
): PgliteSession<Record<string, unknown>, TablesRelationalConfig> {
return new PgliteSession(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/pglite/driver.ts.
Where is createSession() defined?
createSession() is defined in drizzle-orm/src/pglite/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