Home / Class/ Check Class — drizzle-orm Architecture

Check Class — drizzle-orm Architecture

Architecture documentation for the Check class in checks.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  bd007d71_882e_5a14_8bd7_cc6cc2405f34["Check"]
  3bdeabbe_470c_395a_6e44_2d024fc8ee9d["checks.ts"]
  bd007d71_882e_5a14_8bd7_cc6cc2405f34 -->|defined in| 3bdeabbe_470c_395a_6e44_2d024fc8ee9d
  78a61f1d_ab02_73a8_1190_9f25cda49b27["constructor()"]
  bd007d71_882e_5a14_8bd7_cc6cc2405f34 -->|method| 78a61f1d_ab02_73a8_1190_9f25cda49b27

Relationship Graph

Source Code

drizzle-orm/src/pg-core/checks.ts lines 18–28

export class Check {
	static readonly [entityKind]: string = 'PgCheck';

	readonly name: string;
	readonly value: SQL;

	constructor(public table: PgTable, builder: CheckBuilder) {
		this.name = builder.name;
		this.value = builder.value;
	}
}

Domain

Frequently Asked Questions

What is the Check class?
Check is a class 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 18.

Analyze Your Own Codebase

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

Try Supermodel Free