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
  631e206c_67ec_4d5b_df9f_7f3efcc265e6["can()"]
  f737f351_c763_85ca_9108_15077f59c530["SingleStoreDropIndexConvertor"]
  631e206c_67ec_4d5b_df9f_7f3efcc265e6 -->|defined in| f737f351_c763_85ca_9108_15077f59c530
  style 631e206c_67ec_4d5b_df9f_7f3efcc265e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/sqlgenerator.ts lines 3754–3756

	can(statement: JsonStatement, dialect: Dialect): boolean {
		return statement.type === 'drop_index' && dialect === 'singlestore';
	}

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 3754.

Analyze Your Own Codebase

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

Try Supermodel Free