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

bigintNarrow() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  443073e7_bf13_7a52_df5a_b58dc31a1c2e["bigintNarrow()"]
  03d2f7f9_4592_2641_ed27_5e125e89d737["column.ts"]
  443073e7_bf13_7a52_df5a_b58dc31a1c2e -->|defined in| 03d2f7f9_4592_2641_ed27_5e125e89d737
  style 443073e7_bf13_7a52_df5a_b58dc31a1c2e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-arktype/src/column.ts lines 236–237

export const bigintNarrow = (v: bigint, ctx: { mustBe: (expected: string) => false }) =>
	v < CONSTANTS.INT64_MIN ? ctx.mustBe('greater than') : v > CONSTANTS.INT64_MAX ? ctx.mustBe('less than') : true;

Subdomains

Frequently Asked Questions

What does bigintNarrow() do?
bigintNarrow() is a function in the drizzle-orm codebase, defined in drizzle-arktype/src/column.ts.
Where is bigintNarrow() defined?
bigintNarrow() is defined in drizzle-arktype/src/column.ts at line 236.

Analyze Your Own Codebase

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

Try Supermodel Free