SingleStoreChar Class — drizzle-orm Architecture
Architecture documentation for the SingleStoreChar class in char.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 8c07a4a2_9c0f_8ae2_a408_bb5ed2e5c6f5["SingleStoreChar"] fabc2878_bfa9_c1ec_445c_2d0af8485090["char.ts"] 8c07a4a2_9c0f_8ae2_a408_bb5ed2e5c6f5 -->|defined in| fabc2878_bfa9_c1ec_445c_2d0af8485090 47d6c91f_38a9_4f74_e9c9_6e5ea69ad811["getSQLType()"] 8c07a4a2_9c0f_8ae2_a408_bb5ed2e5c6f5 -->|method| 47d6c91f_38a9_4f74_e9c9_6e5ea69ad811
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/char.ts lines 49–60
export class SingleStoreChar<T extends ColumnBaseConfig<'string', 'SingleStoreChar'> & { length?: number | undefined }>
extends SingleStoreColumn<T, SingleStoreCharConfig<T['enumValues'], T['length']>, { length: T['length'] }>
{
static override readonly [entityKind]: string = 'SingleStoreChar';
readonly length: T['length'] = this.config.length;
override readonly enumValues = this.config.enum;
getSQLType(): string {
return this.length === undefined ? `char` : `char(${this.length})`;
}
}
Domain
Source
Frequently Asked Questions
What is the SingleStoreChar class?
SingleStoreChar is a class in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/columns/char.ts.
Where is SingleStoreChar defined?
SingleStoreChar is defined in drizzle-orm/src/singlestore-core/columns/char.ts at line 49.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free