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
  ee7f6b7d_2d74_a926_d1dc_adb7ca19fe84["can()"]
  21ee15e6_12ec_de13_040e_179705fb14dc["CreatePgSequenceConvertor"]
  ee7f6b7d_2d74_a926_d1dc_adb7ca19fe84 -->|defined in| 21ee15e6_12ec_de13_040e_179705fb14dc
  style ee7f6b7d_2d74_a926_d1dc_adb7ca19fe84 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-kit/src/sqlgenerator.ts lines 1287–1289

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

Analyze Your Own Codebase

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

Try Supermodel Free