PgTimestampBuilder Class — drizzle-orm Architecture
Architecture documentation for the PgTimestampBuilder class in timestamp.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD fc2dca00_ffd1_2ad0_dbc3_86e3df723059["PgTimestampBuilder"] a7bcec86_fec9_446d_0dc2_721126dd50c7["timestamp.ts"] fc2dca00_ffd1_2ad0_dbc3_86e3df723059 -->|defined in| a7bcec86_fec9_446d_0dc2_721126dd50c7 eb17f096_7024_5191_38e1_c6d99505aa2c["constructor()"] fc2dca00_ffd1_2ad0_dbc3_86e3df723059 -->|method| eb17f096_7024_5191_38e1_c6d99505aa2c d4b19d82_419d_cf5f_9ca1_89ebf45a7000["build()"] fc2dca00_ffd1_2ad0_dbc3_86e3df723059 -->|method| d4b19d82_419d_cf5f_9ca1_89ebf45a7000
Relationship Graph
Source Code
drizzle-orm/src/pg-core/columns/timestamp.ts lines 18–42
export class PgTimestampBuilder<T extends ColumnBuilderBaseConfig<'date', 'PgTimestamp'>>
extends PgDateColumnBaseBuilder<
T,
{ withTimezone: boolean; precision: number | undefined }
>
{
static override readonly [entityKind]: string = 'PgTimestampBuilder';
constructor(
name: T['name'],
withTimezone: boolean,
precision: number | undefined,
) {
super(name, 'date', 'PgTimestamp');
this.config.withTimezone = withTimezone;
this.config.precision = precision;
}
/** @internal */
override build<TTableName extends string>(
table: AnyPgTable<{ name: TTableName }>,
): PgTimestamp<MakeColumnConfig<T, TTableName>> {
return new PgTimestamp<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the PgTimestampBuilder class?
PgTimestampBuilder is a class in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/timestamp.ts.
Where is PgTimestampBuilder defined?
PgTimestampBuilder is defined in drizzle-orm/src/pg-core/columns/timestamp.ts at line 18.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free