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

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
  73ff5c8b_32f6_8901_2a2f_e48197c83ac1["can()"]
  1f9d4a9f_9ef9_7172_eb56_4a5d210a2c7c["Case1"]
  73ff5c8b_32f6_8901_2a2f_e48197c83ac1 -->|defined in| 1f9d4a9f_9ef9_7172_eb56_4a5d210a2c7c
  1be1c13c_48fb_c7a2_523e_0e4fac2d7156["can()"]
  1be1c13c_48fb_c7a2_523e_0e4fac2d7156 -->|calls| 73ff5c8b_32f6_8901_2a2f_e48197c83ac1
  da935ebb_05f5_14c4_e8b9_2323299b576d["can()"]
  da935ebb_05f5_14c4_e8b9_2323299b576d -->|calls| 73ff5c8b_32f6_8901_2a2f_e48197c83ac1
  62f28699_2d35_f694_46f2_72c256e650ff["can()"]
  62f28699_2d35_f694_46f2_72c256e650ff -->|calls| 73ff5c8b_32f6_8901_2a2f_e48197c83ac1
  2a02d6fc_901d_f2f3_386c_28472e4332a7["can()"]
  2a02d6fc_901d_f2f3_386c_28472e4332a7 -->|calls| 73ff5c8b_32f6_8901_2a2f_e48197c83ac1
  1be1c13c_48fb_c7a2_523e_0e4fac2d7156["can()"]
  73ff5c8b_32f6_8901_2a2f_e48197c83ac1 -->|calls| 1be1c13c_48fb_c7a2_523e_0e4fac2d7156
  style 73ff5c8b_32f6_8901_2a2f_e48197c83ac1 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/simulator.ts lines 47–49

	can(_: T[], removed: T[]): boolean {
		return removed.length === 1 && removed[0].name === 'citiess';
	}

Domain

Subdomains

Calls

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 47.
What does can() call?
can() calls 1 function(s): can.
What calls can()?
can() is called by 4 function(s): can, can, can, can.

Analyze Your Own Codebase

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

Try Supermodel Free