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
  01c1b229_0434_ea33_85f4_8af9cb4a651c["can()"]
  35c137cc_5723_f12e_9b79_6c6f08c96e9d["AlterRenameTypeConvertor"]
  01c1b229_0434_ea33_85f4_8af9cb4a651c -->|defined in| 35c137cc_5723_f12e_9b79_6c6f08c96e9d
  style 01c1b229_0434_ea33_85f4_8af9cb4a651c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/sqlgenerator.ts lines 1449–1451

	can(statement: JsonStatement): boolean {
		return statement.type === 'rename_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 1449.

Analyze Your Own Codebase

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

Try Supermodel Free