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

check() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  77b830be_f00c_6e8b_2acb_c5881e723c1e["check()"]
  3bdeabbe_470c_395a_6e44_2d024fc8ee9d["checks.ts"]
  77b830be_f00c_6e8b_2acb_c5881e723c1e -->|defined in| 3bdeabbe_470c_395a_6e44_2d024fc8ee9d
  style 77b830be_f00c_6e8b_2acb_c5881e723c1e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/checks.ts lines 30–32

export function check(name: string, value: SQL): CheckBuilder {
	return new CheckBuilder(name, value);
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free