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

boolean() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  c217c88a_e500_9efc_fdf5_1e8804e96ea2["boolean()"]
  a4c9ea05_02a5_9e77_fca8_a0fb14b13f43["boolean.ts"]
  c217c88a_e500_9efc_fdf5_1e8804e96ea2 -->|defined in| a4c9ea05_02a5_9e77_fca8_a0fb14b13f43
  style c217c88a_e500_9efc_fdf5_1e8804e96ea2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/columns/boolean.ts lines 41–43

export function boolean(name?: string) {
	return new PgBooleanBuilder(name ?? '');
}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free