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 85e54432_2da9_49a1_2078_c29adc7b74a2["constructor()"] d3818d89_bf25_06e1_e85b_efdad1eed91b["SingleStoreDriverPreparedQuery"] 85e54432_2da9_49a1_2078_c29adc7b74a2 -->|defined in| d3818d89_bf25_06e1_e85b_efdad1eed91b 7bb16eac_82c6_208f_37d9_edfecbf7c888["constructor()"] 7bb16eac_82c6_208f_37d9_edfecbf7c888 -->|calls| 85e54432_2da9_49a1_2078_c29adc7b74a2 7bb16eac_82c6_208f_37d9_edfecbf7c888["constructor()"] 85e54432_2da9_49a1_2078_c29adc7b74a2 -->|calls| 7bb16eac_82c6_208f_37d9_edfecbf7c888 style 85e54432_2da9_49a1_2078_c29adc7b74a2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore/session.ts lines 52–91
constructor(
private client: SingleStoreDriverClient,
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 properties + key from object
private returningIds?: SelectedFieldsOrdered,
) {
super(cache, queryMetadata, cacheConfig);
this.rawQuery = {
sql: queryString,
// rowsAsArray: true,
typeCast: function(field: any, next: any) {
if (field.type === 'TIMESTAMP' || field.type === 'DATETIME' || field.type === 'DATE') {
return field.string();
}
return next();
},
};
this.query = {
sql: queryString,
rowsAsArray: true,
typeCast: function(field: any, next: any) {
if (field.type === 'TIMESTAMP' || field.type === 'DATETIME' || field.type === 'DATE') {
return field.string();
}
return next();
},
};
}
Domain
Subdomains
Defined In
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/singlestore/session.ts.
Where is constructor() defined?
constructor() is defined in drizzle-orm/src/singlestore/session.ts at line 52.
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