Home / Function/ bigint() — drizzle-orm Function Reference

bigint() — drizzle-orm Function Reference

Architecture documentation for the bigint() function in bigint.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  2ee513e3_cb53_3ab1_4514_95d56f6033b9["bigint()"]
  b668ec7c_3eec_efd8_a611_2f2f76754bfd["bigint.ts"]
  2ee513e3_cb53_3ab1_4514_95d56f6033b9 -->|defined in| b668ec7c_3eec_efd8_a611_2f2f76754bfd
  style 2ee513e3_cb53_3ab1_4514_95d56f6033b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/bigint.ts lines 112–118

export function bigint(a?: string | MySqlBigIntConfig, b?: MySqlBigIntConfig) {
	const { name, config } = getColumnNameAndConfig<MySqlBigIntConfig>(a, b);
	if (config.mode === 'number') {
		return new MySqlBigInt53Builder(name, config.unsigned);
	}
	return new MySqlBigInt64Builder(name, config.unsigned);
}

Domain

Subdomains

Frequently Asked Questions

What does bigint() do?
bigint() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/columns/bigint.ts.
Where is bigint() defined?
bigint() is defined in drizzle-orm/src/mysql-core/columns/bigint.ts at line 112.

Analyze Your Own Codebase

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

Try Supermodel Free