constructor() — drizzle-orm Function Reference
Architecture documentation for the constructor() function in session.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 2861104c_40c0_7997_6b29_518612e5cdcd["constructor()"] 432fe997_4ba4_3b24_2264_ddd303ea4f59["PlanetscaleSession"] 2861104c_40c0_7997_6b29_518612e5cdcd -->|defined in| 432fe997_4ba4_3b24_2264_ddd303ea4f59 bcf6cfcd_da5e_86f5_a01b_3e319e280592["constructor()"] bcf6cfcd_da5e_86f5_a01b_3e319e280592 -->|calls| 2861104c_40c0_7997_6b29_518612e5cdcd bcf6cfcd_da5e_86f5_a01b_3e319e280592["constructor()"] 2861104c_40c0_7997_6b29_518612e5cdcd -->|calls| bcf6cfcd_da5e_86f5_a01b_3e319e280592 style 2861104c_40c0_7997_6b29_518612e5cdcd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/planetscale-serverless/session.ts lines 128–139
constructor(
private baseClient: Client | Connection,
dialect: MySqlDialect,
tx: Transaction | undefined,
private schema: RelationalSchemaConfig<TSchema> | undefined,
private options: PlanetscaleSessionOptions = {},
) {
super(dialect);
this.client = tx ?? baseClient;
this.logger = options.logger ?? new NoopLogger();
this.cache = options.cache ?? new NoopCache();
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/planetscale-serverless/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/planetscale-serverless/session.ts at line 128.
What does constructor() call?
constructor() calls 1 function(s): constructor.
What calls constructor()?
constructor() is called by 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free