Home / Class/ GelTimestamp Class — drizzle-orm Architecture

GelTimestamp Class — drizzle-orm Architecture

Architecture documentation for the GelTimestamp class in timestamp.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  4c3cd201_d1ac_a9fb_a8aa_975b0f62f287["GelTimestamp"]
  eb260b78_e826_4d83_9967_4a3bb3d4d983["timestamp.ts"]
  4c3cd201_d1ac_a9fb_a8aa_975b0f62f287 -->|defined in| eb260b78_e826_4d83_9967_4a3bb3d4d983
  deba047f_c1e0_2381_80fb_020d653dab94["constructor()"]
  4c3cd201_d1ac_a9fb_a8aa_975b0f62f287 -->|method| deba047f_c1e0_2381_80fb_020d653dab94
  2d1ad600_8206_83cc_9550_371870cb4068["getSQLType()"]
  4c3cd201_d1ac_a9fb_a8aa_975b0f62f287 -->|method| 2d1ad600_8206_83cc_9550_371870cb4068

Relationship Graph

Source Code

drizzle-orm/src/gel-core/columns/timestamp.ts lines 42–52

export class GelTimestamp<T extends ColumnBaseConfig<'localDateTime', 'GelTimestamp'>> extends GelColumn<T> {
	static override readonly [entityKind]: string = 'GelTimestamp';

	constructor(table: AnyGelTable<{ name: T['tableName'] }>, config: GelTimestampBuilder<T>['config']) {
		super(table, config);
	}

	getSQLType(): string {
		return 'cal::local_datetime';
	}
}

Domain

Frequently Asked Questions

What is the GelTimestamp class?
GelTimestamp is a class in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/columns/timestamp.ts.
Where is GelTimestamp defined?
GelTimestamp is defined in drizzle-orm/src/gel-core/columns/timestamp.ts at line 42.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free