Home / Class/ SingleStoreBoolean Class — drizzle-orm Architecture

SingleStoreBoolean Class — drizzle-orm Architecture

Architecture documentation for the SingleStoreBoolean class in boolean.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  7868ea2b_5656_90c7_4b42_35fffc469277["SingleStoreBoolean"]
  8a3ebdf7_7ec2_d98d_91de_1295196e5424["boolean.ts"]
  7868ea2b_5656_90c7_4b42_35fffc469277 -->|defined in| 8a3ebdf7_7ec2_d98d_91de_1295196e5424
  13202012_f26d_f54b_4b59_f66578446d3b["getSQLType()"]
  7868ea2b_5656_90c7_4b42_35fffc469277 -->|method| 13202012_f26d_f54b_4b59_f66578446d3b
  b01f5415_0481_7d18_73f5_62ea66df7206["mapFromDriverValue()"]
  7868ea2b_5656_90c7_4b42_35fffc469277 -->|method| b01f5415_0481_7d18_73f5_62ea66df7206

Relationship Graph

Source Code

drizzle-orm/src/singlestore-core/columns/boolean.ts lines 37–52

export class SingleStoreBoolean<T extends ColumnBaseConfig<'boolean', 'SingleStoreBoolean'>>
	extends SingleStoreColumn<T>
{
	static override readonly [entityKind]: string = 'SingleStoreBoolean';

	getSQLType(): string {
		return 'boolean';
	}

	override mapFromDriverValue(value: number | boolean): boolean {
		if (typeof value === 'boolean') {
			return value;
		}
		return value === 1;
	}
}

Domain

Frequently Asked Questions

What is the SingleStoreBoolean class?
SingleStoreBoolean is a class in the drizzle-orm codebase, defined in drizzle-orm/src/singlestore-core/columns/boolean.ts.
Where is SingleStoreBoolean defined?
SingleStoreBoolean is defined in drizzle-orm/src/singlestore-core/columns/boolean.ts at line 37.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free