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 c19cba10_cc8a_6c85_b5bc_082d73142e9d["constructor()"] 420d2bd1_62f3_1e85_133b_0108504ac0f4["TiDBServerlessPreparedQuery"] c19cba10_cc8a_6c85_b5bc_082d73142e9d -->|defined in| 420d2bd1_62f3_1e85_133b_0108504ac0f4 f926ac88_f3a4_d810_2c61_ab8fb776d609["constructor()"] c19cba10_cc8a_6c85_b5bc_082d73142e9d -->|calls| f926ac88_f3a4_d810_2c61_ab8fb776d609 style c19cba10_cc8a_6c85_b5bc_082d73142e9d fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/tidb-serverless/session.ts lines 29–48
constructor(
private client: Tx | Connection,
private queryString: string,
private params: unknown[],
private logger: Logger,
cache: Cache,
queryMetadata: {
type: 'select' | 'update' | 'delete' | 'insert';
tables: string[];
} | undefined,
cacheConfig: WithCacheConfig | undefined,
private fields: SelectedFieldsOrdered | undefined,
private customResultMapper?: (rows: unknown[][]) => T['execute'],
// Keys that were used in $default and the value that was generated for them
private generatedIds?: Record<string, unknown>[],
// Keys that should be returned, it has the column with all properries + key from object
private returningIds?: SelectedFieldsOrdered,
) {
super(cache, queryMetadata, cacheConfig);
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does constructor() do?
constructor() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/tidb-serverless/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/tidb-serverless/session.ts at line 29.
What does constructor() call?
constructor() calls 1 function(s): constructor.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free