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 7ce8b742_c3a2_69e2_fd03_34b4fb8d3bae["timestamp()"] d7e3f6c1_5cc9_da57_bb08_4c22eb83ae0a["timestamp.ts"] 7ce8b742_c3a2_69e2_fd03_34b4fb8d3bae -->|defined in| d7e3f6c1_5cc9_da57_bb08_4c22eb83ae0a style 7ce8b742_c3a2_69e2_fd03_34b4fb8d3bae fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/timestamp.ts lines 119–125
export function timestamp(a?: string | SingleStoreTimestampConfig, b: SingleStoreTimestampConfig = {}) {
const { name, config } = getColumnNameAndConfig<SingleStoreTimestampConfig | undefined>(a, b);
if (config?.mode === 'string') {
return new SingleStoreTimestampStringBuilder(name);
}
return new SingleStoreTimestampBuilder(name);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does timestamp() do?
timestamp() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/columns/timestamp.ts.
Where is timestamp() defined?
timestamp() is defined in drizzle-orm/src/singlestore-core/columns/timestamp.ts at line 119.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free