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
  9d1bc0aa_10eb_2163_55e0_9b60131dd7dc["Check"]
  7b4b19ff_e672_3a3d_638b_e876d01d7300["checks.ts"]
  9d1bc0aa_10eb_2163_55e0_9b60131dd7dc -->|defined in| 7b4b19ff_e672_3a3d_638b_e876d01d7300
  87746218_5235_7af5_68b1_4862e02d99e9["constructor()"]
  9d1bc0aa_10eb_2163_55e0_9b60131dd7dc -->|method| 87746218_5235_7af5_68b1_4862e02d99e9

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/checks.ts lines 17–31

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

	declare _: {
		brand: 'SQLiteCheck';
	};

	readonly name: string;
	readonly value: SQL;

	constructor(public table: SQLiteTable, 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/sqlite-core/checks.ts.
Where is Check defined?
Check is defined in drizzle-orm/src/sqlite-core/checks.ts at line 17.

Analyze Your Own Codebase

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

Try Supermodel Free