Home / Class/ SingleStoreJson Class — drizzle-orm Architecture

SingleStoreJson Class — drizzle-orm Architecture

Architecture documentation for the SingleStoreJson class in json.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  bf48781d_6c13_e55c_cf00_5a6d5812ffab["SingleStoreJson"]
  dfefa92a_eb6b_994a_1d34_b269fb75408a["json.ts"]
  bf48781d_6c13_e55c_cf00_5a6d5812ffab -->|defined in| dfefa92a_eb6b_994a_1d34_b269fb75408a
  1a3eeacf_6c12_6fe5_f274_f273c345bd27["getSQLType()"]
  bf48781d_6c13_e55c_cf00_5a6d5812ffab -->|method| 1a3eeacf_6c12_6fe5_f274_f273c345bd27
  dba4e44c_d517_85b3_6e90_f354ca29ecc3["mapToDriverValue()"]
  bf48781d_6c13_e55c_cf00_5a6d5812ffab -->|method| dba4e44c_d517_85b3_6e90_f354ca29ecc3

Relationship Graph

Source Code

drizzle-orm/src/singlestore-core/columns/json.ts lines 37–47

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

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

	override mapToDriverValue(value: T['data']): string {
		return JSON.stringify(value);
	}
}

Domain

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free