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

can() — drizzle-orm Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  392af024_c3b4_7879_3002_5e8280e10e03["can()"]
  13136106_a856_4f84_043e_c76843b1dc3f["CreateTypeEnumConvertor"]
  392af024_c3b4_7879_3002_5e8280e10e03 -->|defined in| 13136106_a856_4f84_043e_c76843b1dc3f
  style 392af024_c3b4_7879_3002_5e8280e10e03 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/sqlgenerator.ts lines 1376–1378

	can(statement: JsonStatement): boolean {
		return statement.type === 'create_type_enum';
	}

Domain

Subdomains

Frequently Asked Questions

What does can() do?
can() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/sqlgenerator.ts.
Where is can() defined?
can() is defined in drizzle-kit/src/sqlgenerator.ts at line 1376.

Analyze Your Own Codebase

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

Try Supermodel Free