Home / Class/ GelDecimal Class — drizzle-orm Architecture

GelDecimal Class — drizzle-orm Architecture

Architecture documentation for the GelDecimal class in decimal.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  100ff585_a49e_6343_5442_0e60fd9e5543["GelDecimal"]
  94bb8f25_c2bc_3bba_f1a5_d0c82d031595["decimal.ts"]
  100ff585_a49e_6343_5442_0e60fd9e5543 -->|defined in| 94bb8f25_c2bc_3bba_f1a5_d0c82d031595
  0cd6acef_d37f_8e11_a8d6_4427dac773f5["constructor()"]
  100ff585_a49e_6343_5442_0e60fd9e5543 -->|method| 0cd6acef_d37f_8e11_a8d6_4427dac773f5
  d2ea191b_1a4c_7517_3458_a283002ba048["getSQLType()"]
  100ff585_a49e_6343_5442_0e60fd9e5543 -->|method| d2ea191b_1a4c_7517_3458_a283002ba048

Relationship Graph

Source Code

drizzle-orm/src/gel-core/columns/decimal.ts lines 33–43

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

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

	getSQLType(): string {
		return 'numeric';
	}
}

Domain

Frequently Asked Questions

What is the GelDecimal class?
GelDecimal is a class in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/columns/decimal.ts.
Where is GelDecimal defined?
GelDecimal is defined in drizzle-orm/src/gel-core/columns/decimal.ts at line 33.

Analyze Your Own Codebase

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

Try Supermodel Free