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 d8e56065_f82f_ac42_d15a_ce69c32a832b["using()"] 149e5992_d166_053e_4f10_4c8e54d56c14["IndexBuilderOn"] d8e56065_f82f_ac42_d15a_ce69c32a832b -->|defined in| 149e5992_d166_053e_4f10_4c8e54d56c14 style d8e56065_f82f_ac42_d15a_ce69c32a832b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
drizzle-orm/src/pg-core/indexes.ts lines 159–178
using(
method: PgIndexMethod,
...columns: [Partial<ExtraConfigColumn | SQL>, ...Partial<ExtraConfigColumn | SQL>[]]
): IndexBuilder {
return new IndexBuilder(
columns.map((it) => {
if (is(it, SQL)) {
return it;
}
it = it as ExtraConfigColumn;
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/pg-core/indexes.ts.
Where is using() defined?
using() is defined in drizzle-orm/src/pg-core/indexes.ts at line 159.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free