Home / Function/ uniqueIndex() — drizzle-orm Function Reference

uniqueIndex() — drizzle-orm Function Reference

Architecture documentation for the uniqueIndex() function in indexes.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  f61632a3_28b7_bbd4_8e30_c66cd68cda6f["uniqueIndex()"]
  a406baef_d8bd_9bc9_efcd_e7c1450622b0["indexes.ts"]
  f61632a3_28b7_bbd4_8e30_c66cd68cda6f -->|defined in| a406baef_d8bd_9bc9_efcd_e7c1450622b0
  style f61632a3_28b7_bbd4_8e30_c66cd68cda6f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/indexes.ts lines 249–251

export function uniqueIndex(name?: string): IndexBuilderOn {
	return new IndexBuilderOn(true, name);
}

Domain

Subdomains

Frequently Asked Questions

What does uniqueIndex() do?
uniqueIndex() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/indexes.ts.
Where is uniqueIndex() defined?
uniqueIndex() is defined in drizzle-orm/src/pg-core/indexes.ts at line 249.

Analyze Your Own Codebase

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

Try Supermodel Free