SingleStoreTinyInt Class — drizzle-orm Architecture
Architecture documentation for the SingleStoreTinyInt class in tinyint.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD 93442176_c543_1152_7012_23f456803ae6["SingleStoreTinyInt"] 3e7a00e0_7d17_16f2_4fa9_620aeb7df9ad["tinyint.ts"] 93442176_c543_1152_7012_23f456803ae6 -->|defined in| 3e7a00e0_7d17_16f2_4fa9_620aeb7df9ad 47e00dec_ebdc_6d34_4aeb_79f52f123804["getSQLType()"] 93442176_c543_1152_7012_23f456803ae6 -->|method| 47e00dec_ebdc_6d34_4aeb_79f52f123804 fde073f8_4e3e_376c_33ef_46a4b28bb34b["mapFromDriverValue()"] 93442176_c543_1152_7012_23f456803ae6 -->|method| fde073f8_4e3e_376c_33ef_46a4b28bb34b
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/tinyint.ts lines 40–55
export class SingleStoreTinyInt<T extends ColumnBaseConfig<'number', 'SingleStoreTinyInt'>>
extends SingleStoreColumnWithAutoIncrement<T, SingleStoreIntConfig>
{
static override readonly [entityKind]: string = 'SingleStoreTinyInt';
getSQLType(): string {
return `tinyint${this.config.unsigned ? ' unsigned' : ''}`;
}
override mapFromDriverValue(value: number | string): number {
if (typeof value === 'string') {
return Number(value);
}
return value;
}
}
Domain
Source
Frequently Asked Questions
What is the SingleStoreTinyInt class?
SingleStoreTinyInt is a class in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/columns/tinyint.ts.
Where is SingleStoreTinyInt defined?
SingleStoreTinyInt is defined in drizzle-orm/src/singlestore-core/columns/tinyint.ts at line 40.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free