Home / Class/ PgSmallIntBuilder Class — drizzle-orm Architecture

PgSmallIntBuilder Class — drizzle-orm Architecture

Architecture documentation for the PgSmallIntBuilder class in smallint.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  07a71206_1e0f_a396_4273_b991bd532bd2["PgSmallIntBuilder"]
  1efe7a66_e4ac_9b00_b7f9_c6b0047ae0f8["smallint.ts"]
  07a71206_1e0f_a396_4273_b991bd532bd2 -->|defined in| 1efe7a66_e4ac_9b00_b7f9_c6b0047ae0f8
  47034b5a_be12_0cc1_3c34_7f6824dc8769["constructor()"]
  07a71206_1e0f_a396_4273_b991bd532bd2 -->|method| 47034b5a_be12_0cc1_3c34_7f6824dc8769
  b1906816_5c5e_aef1_2ead_af171fe4c905["build()"]
  07a71206_1e0f_a396_4273_b991bd532bd2 -->|method| b1906816_5c5e_aef1_2ead_af171fe4c905

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/smallint.ts lines 17–32

export class PgSmallIntBuilder<T extends ColumnBuilderBaseConfig<'number', 'PgSmallInt'>>
	extends PgIntColumnBaseBuilder<T>
{
	static override readonly [entityKind]: string = 'PgSmallIntBuilder';

	constructor(name: T['name']) {
		super(name, 'number', 'PgSmallInt');
	}

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

Domain

Frequently Asked Questions

What is the PgSmallIntBuilder class?
PgSmallIntBuilder is a class in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/columns/smallint.ts.
Where is PgSmallIntBuilder defined?
PgSmallIntBuilder is defined in drizzle-orm/src/pg-core/columns/smallint.ts at line 17.

Analyze Your Own Codebase

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

Try Supermodel Free