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 15557242_a201_18eb_b1f2_acd34f5cf65f["can()"] 511222d2_9639_acef_bf19_2cb4953eabdb["MySQLAlterTableDropUniqueConstraintConvertor"] 15557242_a201_18eb_b1f2_acd34f5cf65f -->|defined in| 511222d2_9639_acef_bf19_2cb4953eabdb style 15557242_a201_18eb_b1f2_acd34f5cf65f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/sqlgenerator.ts lines 1226–1228
can(statement: JsonDeleteUniqueConstraint, dialect: Dialect): boolean {
return statement.type === 'delete_unique_constraint' && dialect === 'mysql';
}
Domain
Subdomains
Defined In
Source
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 1226.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free