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