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

smallint() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3b8dbf6f_8231_d29b_3197_4a4d49388c7b["smallint()"]
  1efe7a66_e4ac_9b00_b7f9_c6b0047ae0f8["smallint.ts"]
  3b8dbf6f_8231_d29b_3197_4a4d49388c7b -->|defined in| 1efe7a66_e4ac_9b00_b7f9_c6b0047ae0f8
  style 3b8dbf6f_8231_d29b_3197_4a4d49388c7b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/smallint.ts lines 51–53

export function smallint(name?: string) {
	return new PgSmallIntBuilder(name ?? '');
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free