Home / Class/ PgNumericBigIntBuilder Class — drizzle-orm Architecture

PgNumericBigIntBuilder Class — drizzle-orm Architecture

Architecture documentation for the PgNumericBigIntBuilder class in numeric.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  a26ff625_dd78_8e24_efb8_0c3218bfd5e6["PgNumericBigIntBuilder"]
  b02d9686_b68f_1cdd_74bf_e7c79bb754fb["numeric.ts"]
  a26ff625_dd78_8e24_efb8_0c3218bfd5e6 -->|defined in| b02d9686_b68f_1cdd_74bf_e7c79bb754fb
  1917fb43_d708_7ed4_76b4_4ae4a9d92598["constructor()"]
  a26ff625_dd78_8e24_efb8_0c3218bfd5e6 -->|method| 1917fb43_d708_7ed4_76b4_4ae4a9d92598
  66069c36_c64b_49b5_b367_19312f7e742b["build()"]
  a26ff625_dd78_8e24_efb8_0c3218bfd5e6 -->|method| 66069c36_c64b_49b5_b367_19312f7e742b

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/numeric.ts lines 146–172

export class PgNumericBigIntBuilder<T extends ColumnBuilderBaseConfig<'bigint', 'PgNumericBigInt'>>
	extends PgColumnBuilder<
		T,
		{
			precision: number | undefined;
			scale: number | undefined;
		}
	>
{
	static override readonly [entityKind]: string = 'PgNumericBigIntBuilder';

	constructor(name: T['name'], precision?: number, scale?: number) {
		super(name, 'bigint', 'PgNumericBigInt');
		this.config.precision = precision;
		this.config.scale = scale;
	}

	/** @internal */
	override build<TTableName extends string>(
		table: AnyPgTable<{ name: TTableName }>,
	): PgNumericBigInt<MakeColumnConfig<T, TTableName>> {
		return new PgNumericBigInt<MakeColumnConfig<T, TTableName>>(
			table,
			this.config as ColumnBuilderRuntimeConfig<any, any>,
		);
	}
}

Domain

Frequently Asked Questions

What is the PgNumericBigIntBuilder class?
PgNumericBigIntBuilder is a class in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/numeric.ts.
Where is PgNumericBigIntBuilder defined?
PgNumericBigIntBuilder is defined in drizzle-orm/src/pg-core/columns/numeric.ts at line 146.

Analyze Your Own Codebase

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

Try Supermodel Free