date() — drizzle-orm Function Reference
Architecture documentation for the date() function in date.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD f862b430_151a_6202_2e10_221f19c56fc2["date()"] 772f51ce_2d26_fa4c_14c8_6779803c51bb["date.ts"] f862b430_151a_6202_2e10_221f19c56fc2 -->|defined in| 772f51ce_2d26_fa4c_14c8_6779803c51bb style f862b430_151a_6202_2e10_221f19c56fc2 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/columns/date.ts lines 107–113
export function date(a?: string | MySqlDateConfig, b?: MySqlDateConfig) {
const { name, config } = getColumnNameAndConfig<MySqlDateConfig | undefined>(a, b);
if (config?.mode === 'string') {
return new MySqlDateStringBuilder(name);
}
return new MySqlDateBuilder(name);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does date() do?
date() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/columns/date.ts.
Where is date() defined?
date() is defined in drizzle-orm/src/mysql-core/columns/date.ts at line 107.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free