IndexConfig Type — drizzle-orm Architecture
Architecture documentation for the IndexConfig type/interface in indexes.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD aae8cd34_05a8_347f_a29b_f57d9f25a5f9["IndexConfig"] a406baef_d8bd_9bc9_efcd_e7c1450622b0["indexes.ts"] aae8cd34_05a8_347f_a29b_f57d9f25a5f9 -->|defined in| a406baef_d8bd_9bc9_efcd_e7c1450622b0 style aae8cd34_05a8_347f_a29b_f57d9f25a5f9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/indexes.ts lines 8–42
interface IndexConfig {
name?: string;
columns: Partial<IndexedColumn | SQL>[];
/**
* If true, the index will be created as `create unique index` instead of `create index`.
*/
unique: boolean;
/**
* If true, the index will be created as `create index concurrently` instead of `create index`.
*/
concurrently?: boolean;
/**
* If true, the index will be created as `create index ... on only <table>` instead of `create index ... on <table>`.
*/
only: boolean;
/**
* Condition for partial index.
*/
where?: SQL;
/**
* The optional WITH clause specifies storage parameters for the index
*/
with?: Record<string, any>;
/**
* The optional WITH clause method for the index
*/
method?: 'btree' | string;
}
Defined In
Source
Frequently Asked Questions
What is the IndexConfig type?
IndexConfig is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/indexes.ts.
Where is IndexConfig defined?
IndexConfig is defined in drizzle-orm/src/pg-core/indexes.ts at line 8.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free