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 9c51555b_34a2_368d_d454_d45a0e461380["IndexConfig"] 7913dddc_a30d_737a_c184_2da6763dd9e0["indexes.ts"] 9c51555b_34a2_368d_d454_d45a0e461380 -->|defined in| 7913dddc_a30d_737a_c184_2da6763dd9e0 style 9c51555b_34a2_368d_d454_d45a0e461380 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/gel-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/gel-core/indexes.ts.
Where is IndexConfig defined?
IndexConfig is defined in drizzle-orm/src/gel-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