PrimaryKeyBuilder Class — drizzle-orm Architecture
Architecture documentation for the PrimaryKeyBuilder class in primary-keys.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD d24d916d_8ace_3689_b8a9_79e3148b8507["PrimaryKeyBuilder"] 23f0730e_a6b8_4342_cdc4_6f458b4467d7["primary-keys.ts"] d24d916d_8ace_3689_b8a9_79e3148b8507 -->|defined in| 23f0730e_a6b8_4342_cdc4_6f458b4467d7 8f2b57c6_76f4_455b_56ef_c7edfc48f908["constructor()"] d24d916d_8ace_3689_b8a9_79e3148b8507 -->|method| 8f2b57c6_76f4_455b_56ef_c7edfc48f908 d4db3f8a_9eef_2b17_0789_317ef2c57f6e["build()"] d24d916d_8ace_3689_b8a9_79e3148b8507 -->|method| d4db3f8a_9eef_2b17_0789_317ef2c57f6e
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/primary-keys.ts lines 25–46
export class PrimaryKeyBuilder {
static readonly [entityKind]: string = 'SingleStorePrimaryKeyBuilder';
/** @internal */
columns: SingleStoreColumn[];
/** @internal */
name?: string;
constructor(
columns: SingleStoreColumn[],
name?: string,
) {
this.columns = columns;
this.name = name;
}
/** @internal */
build(table: SingleStoreTable): PrimaryKey {
return new PrimaryKey(table, this.columns, this.name);
}
}
Domain
Source
Frequently Asked Questions
What is the PrimaryKeyBuilder class?
PrimaryKeyBuilder is a class in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/primary-keys.ts.
Where is PrimaryKeyBuilder defined?
PrimaryKeyBuilder is defined in drizzle-orm/src/singlestore-core/primary-keys.ts at line 25.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free