buildIndex() — drizzle-orm Function Reference
Architecture documentation for the buildIndex() function in dialect.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 7c20c441_cfa6_cf8b_7c30_26d754c4801b["buildIndex()"] 9c5eee4c_4b78_a585_4038_d710de212097["MySqlDialect"] 7c20c441_cfa6_cf8b_7c30_26d754c4801b -->|defined in| 9c5eee4c_4b78_a585_4038_d710de212097 8ae83588_d5c3_3834_94e9_82ba6770d1a1["buildSelectQuery()"] 8ae83588_d5c3_3834_94e9_82ba6770d1a1 -->|calls| 7c20c441_cfa6_cf8b_7c30_26d754c4801b style 7c20c441_cfa6_cf8b_7c30_26d754c4801b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/mysql-core/dialect.ts lines 265–275
private buildIndex({
indexes,
indexFor,
}: {
indexes: string[] | undefined;
indexFor: 'USE' | 'FORCE' | 'IGNORE';
}): SQL | undefined {
return indexes && indexes.length > 0
? sql` ${sql.raw(indexFor)} INDEX (${sql.raw(indexes.join(`, `))})`
: undefined;
}
Domain
Subdomains
Defined In
Called By
Source
Frequently Asked Questions
What does buildIndex() do?
buildIndex() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/dialect.ts.
Where is buildIndex() defined?
buildIndex() is defined in drizzle-orm/src/mysql-core/dialect.ts at line 265.
What calls buildIndex()?
buildIndex() is called by 1 function(s): buildSelectQuery.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free