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
  5c4a723d_f1c0_50a5_b9a2_8ec438250746["can()"]
  d5b44c9d_d1a8_b3e0_c875_f2415efa8440["PgAlterViewDropWithOptionConvertor"]
  5c4a723d_f1c0_50a5_b9a2_8ec438250746 -->|defined in| d5b44c9d_d1a8_b3e0_c875_f2415efa8440
  style 5c4a723d_f1c0_50a5_b9a2_8ec438250746 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/sqlgenerator.ts lines 952–954

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

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

Analyze Your Own Codebase

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

Try Supermodel Free