ViewBuilderCore Class — drizzle-orm Architecture
Architecture documentation for the ViewBuilderCore class in view.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD bcde1df2_655f_25e6_bffb_1dff75c41d11["ViewBuilderCore"] 00013fdd_c67a_b05e_780e_20cc1f0af66b["view.ts"] bcde1df2_655f_25e6_bffb_1dff75c41d11 -->|defined in| 00013fdd_c67a_b05e_780e_20cc1f0af66b c6761662_7399_99a1_9f86_1bab7c30d5bd["constructor()"] bcde1df2_655f_25e6_bffb_1dff75c41d11 -->|method| c6761662_7399_99a1_9f86_1bab7c30d5bd f94dbcdf_0848_ee19_318a_7f5c18722a2f["algorithm()"] bcde1df2_655f_25e6_bffb_1dff75c41d11 -->|method| f94dbcdf_0848_ee19_318a_7f5c18722a2f eb108071_a783_75c3_bbd6_327799a5e168["definer()"] bcde1df2_655f_25e6_bffb_1dff75c41d11 -->|method| eb108071_a783_75c3_bbd6_327799a5e168 bccde3fc_2e14_30f3_120b_dc8e70cf0eda["sqlSecurity()"] bcde1df2_655f_25e6_bffb_1dff75c41d11 -->|method| bccde3fc_2e14_30f3_120b_dc8e70cf0eda 50a44244_b605_b7b3_96cc_f363745e924d["withCheckOption()"] bcde1df2_655f_25e6_bffb_1dff75c41d11 -->|method| 50a44244_b605_b7b3_96cc_f363745e924d
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/view.ts lines 22–64
export class ViewBuilderCore<TConfig extends { name: string; columns?: unknown }> {
static readonly [entityKind]: string = 'SingleStoreViewBuilder';
declare readonly _: {
readonly name: TConfig['name'];
readonly columns: TConfig['columns'];
};
constructor(
protected name: TConfig['name'],
protected schema: string | undefined,
) {}
protected config: ViewBuilderConfig = {};
algorithm(
algorithm: Exclude<ViewBuilderConfig['algorithm'], undefined>,
): this {
this.config.algorithm = algorithm;
return this;
}
definer(
definer: Exclude<ViewBuilderConfig['definer'], undefined>,
): this {
this.config.definer = definer;
return this;
}
sqlSecurity(
sqlSecurity: Exclude<ViewBuilderConfig['sqlSecurity'], undefined>,
): this {
this.config.sqlSecurity = sqlSecurity;
return this;
}
withCheckOption(
withCheckOption?: Exclude<ViewBuilderConfig['withCheckOption'], undefined>,
): this {
this.config.withCheckOption = withCheckOption ?? 'cascaded';
return this;
}
}
Domain
Defined In
Source
Frequently Asked Questions
What is the ViewBuilderCore class?
ViewBuilderCore is a class in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/view.ts.
Where is ViewBuilderCore defined?
ViewBuilderCore is defined in drizzle-orm/src/singlestore-core/view.ts at line 22.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free