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 f99067da_689b_a985_0330_111260cca747["can()"] 9b42d53d_9447_23eb_6722_8119b4fcef03["PgDropTableConvertor"] f99067da_689b_a985_0330_111260cca747 -->|defined in| 9b42d53d_9447_23eb_6722_8119b4fcef03 style f99067da_689b_a985_0330_111260cca747 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-kit/src/sqlgenerator.ts lines 1518–1520
can(statement: JsonStatement, dialect: Dialect): boolean {
return statement.type === 'drop_table' && dialect === 'postgresql';
}
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 1518.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free