PgDateString Class — drizzle-orm Architecture
Architecture documentation for the PgDateString class in date.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 28b72c6e_0aff_6246_a307_23e8521f183f["PgDateString"] a902aaa8_6b01_2dfb_1190_b453c982fd45["date.ts"] 28b72c6e_0aff_6246_a307_23e8521f183f -->|defined in| a902aaa8_6b01_2dfb_1190_b453c982fd45 148322bd_56f5_e8c6_d294_029f33f38988["getSQLType()"] 28b72c6e_0aff_6246_a307_23e8521f183f -->|method| 148322bd_56f5_e8c6_d294_029f33f38988 6d7a7992_47d0_ba5c_dae5_6290fa74c6d7["mapFromDriverValue()"] 28b72c6e_0aff_6246_a307_23e8521f183f -->|method| 6d7a7992_47d0_ba5c_dae5_6290fa74c6d7
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/date.ts lines 80–92
export class PgDateString<T extends ColumnBaseConfig<'string', 'PgDateString'>> extends PgColumn<T> {
static override readonly [entityKind]: string = 'PgDateString';
getSQLType(): string {
return 'date';
}
override mapFromDriverValue(value: Date | string): string {
if (typeof value === 'string') return value;
return value.toISOString().slice(0, -14);
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the PgDateString class?
PgDateString is a class in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/date.ts.
Where is PgDateString defined?
PgDateString is defined in drizzle-orm/src/pg-core/columns/date.ts at line 80.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free