Home / Class/ MySqlBigInt53 Class — drizzle-orm Architecture

MySqlBigInt53 Class — drizzle-orm Architecture

Architecture documentation for the MySqlBigInt53 class in bigint.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  a06ead51_517f_fded_b53a_53add6118894["MySqlBigInt53"]
  b668ec7c_3eec_efd8_a611_2f2f76754bfd["bigint.ts"]
  a06ead51_517f_fded_b53a_53add6118894 -->|defined in| b668ec7c_3eec_efd8_a611_2f2f76754bfd
  5218310d_e9a4_04f0_fcf9_7defd310ac6e["getSQLType()"]
  a06ead51_517f_fded_b53a_53add6118894 -->|method| 5218310d_e9a4_04f0_fcf9_7defd310ac6e
  75471c78_4ee6_40c6_d571_6463457e2385["mapFromDriverValue()"]
  a06ead51_517f_fded_b53a_53add6118894 -->|method| 75471c78_4ee6_40c6_d571_6463457e2385

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/bigint.ts lines 38–53

export class MySqlBigInt53<T extends ColumnBaseConfig<'number', 'MySqlBigInt53'>>
	extends MySqlColumnWithAutoIncrement<T, { unsigned: boolean }>
{
	static override readonly [entityKind]: string = 'MySqlBigInt53';

	getSQLType(): string {
		return `bigint${this.config.unsigned ? ' unsigned' : ''}`;
	}

	override mapFromDriverValue(value: number | string): number {
		if (typeof value === 'number') {
			return value;
		}
		return Number(value);
	}
}

Domain

Frequently Asked Questions

What is the MySqlBigInt53 class?
MySqlBigInt53 is a class in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/columns/bigint.ts.
Where is MySqlBigInt53 defined?
MySqlBigInt53 is defined in drizzle-orm/src/mysql-core/columns/bigint.ts at line 38.

Analyze Your Own Codebase

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

Try Supermodel Free