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 f0158487_b3ad_e29a_d715_bd3b424e6297["IndexConfig"] e43c7978_6183_5be1_2adb_a463e29db8ba["indexes.ts"] f0158487_b3ad_e29a_d715_bd3b424e6297 -->|defined in| e43c7978_6183_5be1_2adb_a463e29db8ba style f0158487_b3ad_e29a_d715_bd3b424e6297 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/indexes.ts lines 6–30
interface IndexConfig {
name: string;
columns: IndexColumn[];
/**
* If true, the index will be created as `create unique index` instead of `create index`.
*/
unique?: boolean;
/**
* If set, the index will be created as `create index ... using { 'btree' | 'hash' }`.
*/
using?: 'btree' | 'hash';
/**
* If set, the index will be created as `create index ... algorithm { 'default' | 'inplace' | 'copy' }`.
*/
algorithm?: 'default' | 'inplace' | 'copy';
/**
* If set, adds locks to the index creation.
*/
lock?: 'default' | 'none' | 'shared' | 'exclusive';
}
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/singlestore-core/indexes.ts.
Where is IndexConfig defined?
IndexConfig is defined in drizzle-orm/src/singlestore-core/indexes.ts at line 6.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free