SingleStoreFloat Class — drizzle-orm Architecture
Architecture documentation for the SingleStoreFloat class in float.ts from the drizzle-orm codebase.
Entity Profile
Dependency Diagram
graph TD e783f914_167d_f346_7793_049921b85256["SingleStoreFloat"] 8b3c512c_2831_7522_60cb_d72e0a0ce330["float.ts"] e783f914_167d_f346_7793_049921b85256 -->|defined in| 8b3c512c_2831_7522_60cb_d72e0a0ce330 8e528dbe_54c1_3590_68a8_dffec3d804b8["getSQLType()"] e783f914_167d_f346_7793_049921b85256 -->|method| 8e528dbe_54c1_3590_68a8_dffec3d804b8
Relationship Graph
Source Code
drizzle-orm/src/singlestore-core/columns/float.ts lines 41–61
export class SingleStoreFloat<T extends ColumnBaseConfig<'number', 'SingleStoreFloat'>>
extends SingleStoreColumnWithAutoIncrement<T, SingleStoreFloatConfig>
{
static override readonly [entityKind]: string = 'SingleStoreFloat';
readonly precision: number | undefined = this.config.precision;
readonly scale: number | undefined = this.config.scale;
readonly unsigned: boolean | undefined = this.config.unsigned;
getSQLType(): string {
let type = '';
if (this.precision !== undefined && this.scale !== undefined) {
type += `float(${this.precision},${this.scale})`;
} else if (this.precision === undefined) {
type += 'float';
} else {
type += `float(${this.precision},0)`;
}
return this.unsigned ? `${type} unsigned` : type;
}
}
Domain
Source
Frequently Asked Questions
What is the SingleStoreFloat class?
SingleStoreFloat is a class in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/columns/float.ts.
Where is SingleStoreFloat defined?
SingleStoreFloat is defined in drizzle-orm/src/singlestore-core/columns/float.ts at line 41.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free