SingleStoreDate Class — drizzle-orm Architecture
Architecture documentation for the SingleStoreDate class in date.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD b06daf19_eb60_1ce8_13f3_32f720dbe42f["SingleStoreDate"] bb32a096_d9a0_c7a3_61ce_631ad95ce843["date.ts"] b06daf19_eb60_1ce8_13f3_32f720dbe42f -->|defined in| bb32a096_d9a0_c7a3_61ce_631ad95ce843 40febd64_b133_357c_45bd_665770df8705["constructor()"] b06daf19_eb60_1ce8_13f3_32f720dbe42f -->|method| 40febd64_b133_357c_45bd_665770df8705 159ddce3_50f1_81b0_9fe6_0ce1e997abc7["getSQLType()"] b06daf19_eb60_1ce8_13f3_32f720dbe42f -->|method| 159ddce3_50f1_81b0_9fe6_0ce1e997abc7 ff4053c4_0226_b34c_f349_00cd7f8bdbc9["mapFromDriverValue()"] b06daf19_eb60_1ce8_13f3_32f720dbe42f -->|method| ff4053c4_0226_b34c_f349_00cd7f8bdbc9
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/date.ts lines 38–55
export class SingleStoreDate<T extends ColumnBaseConfig<'date', 'SingleStoreDate'>> extends SingleStoreColumn<T> {
static override readonly [entityKind]: string = 'SingleStoreDate';
constructor(
table: AnySingleStoreTable<{ name: T['tableName'] }>,
config: SingleStoreDateBuilder<T>['config'],
) {
super(table, config);
}
getSQLType(): string {
return `date`;
}
override mapFromDriverValue(value: string): Date {
return new Date(value);
}
}
Domain
Source
Frequently Asked Questions
What is the SingleStoreDate class?
SingleStoreDate is a class in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/columns/date.ts.
Where is SingleStoreDate defined?
SingleStoreDate is defined in drizzle-orm/src/singlestore-core/columns/date.ts at line 38.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free