MySqlDateTimeString Class — drizzle-orm Architecture
Architecture documentation for the MySqlDateTimeString class in datetime.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD b5c4f6f8_686b_8b85_00da_5889f88ccff0["MySqlDateTimeString"] eb2e4c8f_81c8_a37a_4d03_317a5ea489ad["datetime.ts"] b5c4f6f8_686b_8b85_00da_5889f88ccff0 -->|defined in| eb2e4c8f_81c8_a37a_4d03_317a5ea489ad c1370bc6_699f_22c5_4ebe_68a7648ce173["constructor()"] b5c4f6f8_686b_8b85_00da_5889f88ccff0 -->|method| c1370bc6_699f_22c5_4ebe_68a7648ce173 f14803f4_8303_414a_47d9_84a5e26b85d0["getSQLType()"] b5c4f6f8_686b_8b85_00da_5889f88ccff0 -->|method| f14803f4_8303_414a_47d9_84a5e26b85d0
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/columns/datetime.ts lines 95–112
export class MySqlDateTimeString<T extends ColumnBaseConfig<'string', 'MySqlDateTimeString'>> extends MySqlColumn<T> {
static override readonly [entityKind]: string = 'MySqlDateTimeString';
readonly fsp: number | undefined;
constructor(
table: AnyMySqlTable<{ name: T['tableName'] }>,
config: MySqlDateTimeStringBuilder<T>['config'],
) {
super(table, config);
this.fsp = config.fsp;
}
getSQLType(): string {
const precision = this.fsp === undefined ? '' : `(${this.fsp})`;
return `datetime${precision}`;
}
}
Domain
Source
Frequently Asked Questions
What is the MySqlDateTimeString class?
MySqlDateTimeString is a class in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/columns/datetime.ts.
Where is MySqlDateTimeString defined?
MySqlDateTimeString is defined in drizzle-orm/src/mysql-core/columns/datetime.ts at line 95.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free