can() — drizzle-orm Function Reference
Architecture documentation for the can() function in simulator.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 1be1c13c_48fb_c7a2_523e_0e4fac2d7156["can()"] b44831d7_8e0d_dc90_1923_21768a34ec34["Case2"] 1be1c13c_48fb_c7a2_523e_0e4fac2d7156 -->|defined in| b44831d7_8e0d_dc90_1923_21768a34ec34 02e4577d_5728_1da5_23bb_7db2f90bb7e0["can()"] 02e4577d_5728_1da5_23bb_7db2f90bb7e0 -->|calls| 1be1c13c_48fb_c7a2_523e_0e4fac2d7156 73ff5c8b_32f6_8901_2a2f_e48197c83ac1["can()"] 73ff5c8b_32f6_8901_2a2f_e48197c83ac1 -->|calls| 1be1c13c_48fb_c7a2_523e_0e4fac2d7156 73ff5c8b_32f6_8901_2a2f_e48197c83ac1["can()"] 1be1c13c_48fb_c7a2_523e_0e4fac2d7156 -->|calls| 73ff5c8b_32f6_8901_2a2f_e48197c83ac1 style 1be1c13c_48fb_c7a2_523e_0e4fac2d7156 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/simulator.ts lines 57–59
can(_: T[], removed: T[]): boolean {
return removed.length === 3 && removed[0].name === 'auth_otp';
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does can() do?
can() is a function in the drizzle-orm codebase, defined in drizzle-kit/src/simulator.ts.
Where is can() defined?
can() is defined in drizzle-kit/src/simulator.ts at line 57.
What does can() call?
can() calls 1 function(s): can.
What calls can()?
can() is called by 2 function(s): can, can.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free