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
  9c02d650_ddb6_ae98_fd14_9ab7eee28ced["smallint()"]
  632f165f_0964_0c7d_8285_50b611e17db1["smallint.ts"]
  9c02d650_ddb6_ae98_fd14_9ab7eee28ced -->|defined in| 632f165f_0964_0c7d_8285_50b611e17db1
  style 9c02d650_ddb6_ae98_fd14_9ab7eee28ced fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/singlestore-core/columns/smallint.ts lines 65–68

export function smallint(a?: string | SingleStoreIntConfig, b?: SingleStoreIntConfig) {
	const { name, config } = getColumnNameAndConfig<SingleStoreIntConfig>(a, b);
	return new SingleStoreSmallIntBuilder(name, config);
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free