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