Home / Class/ MySqlText Class — drizzle-orm Architecture

MySqlText Class — drizzle-orm Architecture

Architecture documentation for the MySqlText class in text.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  b0a1dd19_3424_0d7f_cbfc_e1e1d4718aeb["MySqlText"]
  1be1be31_91b4_c285_e9ca_aa6d859e2607["text.ts"]
  b0a1dd19_3424_0d7f_cbfc_e1e1d4718aeb -->|defined in| 1be1be31_91b4_c285_e9ca_aa6d859e2607
  c3f0dad2_8580_0d30_350f_7e5fd1820fc8["getSQLType()"]
  b0a1dd19_3424_0d7f_cbfc_e1e1d4718aeb -->|method| c3f0dad2_8580_0d30_350f_7e5fd1820fc8

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/columns/text.ts lines 39–51

export class MySqlText<T extends ColumnBaseConfig<'string', 'MySqlText'>>
	extends MySqlColumn<T, { textType: MySqlTextColumnType; enumValues: T['enumValues'] }>
{
	static override readonly [entityKind]: string = 'MySqlText';

	readonly textType: MySqlTextColumnType = this.config.textType;

	override readonly enumValues = this.config.enumValues;

	getSQLType(): string {
		return this.textType;
	}
}

Domain

Frequently Asked Questions

What is the MySqlText class?
MySqlText is a class in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/columns/text.ts.
Where is MySqlText defined?
MySqlText is defined in drizzle-orm/src/mysql-core/columns/text.ts at line 39.

Analyze Your Own Codebase

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

Try Supermodel Free