using() — drizzle-orm Function Reference
Architecture documentation for the using() function in indexes.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD af5f6a90_6806_7ea0_f1b7_b4919c5aad79["using()"] 02429881_d882_e62b_a969_f07e1c11f572["IndexBuilderOn"] af5f6a90_6806_7ea0_f1b7_b4919c5aad79 -->|defined in| 02429881_d882_e62b_a969_f07e1c11f572 style af5f6a90_6806_7ea0_f1b7_b4919c5aad79 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/gel-core/indexes.ts lines 167–186
using(
method: GelIndexMethod,
...columns: [Partial<GelExtraConfigColumn | SQL>, ...Partial<GelExtraConfigColumn | SQL>[]]
): IndexBuilder {
return new IndexBuilder(
columns.map((it) => {
if (is(it, SQL)) {
return it;
}
it = it as GelExtraConfigColumn;
const clonedIndexedColumn = new IndexedColumn(it.name, !!it.keyAsName, it.columnType!, it.indexConfig!);
it.indexConfig = JSON.parse(JSON.stringify(it.defaultConfig));
return clonedIndexedColumn;
}),
this.unique,
true,
this.name,
method,
);
}
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does using() do?
using() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/indexes.ts.
Where is using() defined?
using() is defined in drizzle-orm/src/gel-core/indexes.ts at line 167.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free