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
  891b71f1_9df2_6e6f_36c4_20c1f8226491["can()"]
  a2e5babd_deca_a2c9_de4a_f5c8e7867a43["PgAlterTableDeleteCompositePrimaryKeyConvertor"]
  891b71f1_9df2_6e6f_36c4_20c1f8226491 -->|defined in| a2e5babd_deca_a2c9_de4a_f5c8e7867a43
  style 891b71f1_9df2_6e6f_36c4_20c1f8226491 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/sqlgenerator.ts lines 3091–3093

	can(statement: JsonStatement, dialect: Dialect): boolean {
		return statement.type === 'delete_composite_pk' && 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 3091.

Analyze Your Own Codebase

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

Try Supermodel Free