real.ts — drizzle-orm Source File
Architecture documentation for real.ts, a typescript file in the drizzle-orm codebase. 6 imports, 1 dependents.
Entity Profile
Dependency Diagram
graph LR 67762d63_aaf6_b79b_dbd2_3bc891aeae1f["real.ts"] a74dd48d_d5e3_6bb4_19c7_1954c9126816["common.ts"] 67762d63_aaf6_b79b_dbd2_3bc891aeae1f --> a74dd48d_d5e3_6bb4_19c7_1954c9126816 d67beed0_fcf6_77d7_10cf_cdcfd53f8551["GelColumn"] 67762d63_aaf6_b79b_dbd2_3bc891aeae1f --> d67beed0_fcf6_77d7_10cf_cdcfd53f8551 2dc784c6_95e9_4e28_ec81_7caf4acbd426["column-builder.ts"] 67762d63_aaf6_b79b_dbd2_3bc891aeae1f --> 2dc784c6_95e9_4e28_ec81_7caf4acbd426 05f0a280_d0c9_693a_a4bf_83cc671012d2["column.ts"] 67762d63_aaf6_b79b_dbd2_3bc891aeae1f --> 05f0a280_d0c9_693a_a4bf_83cc671012d2 27705a9d_afe9_57dd_8c97_e52d8a67d426["entity.ts"] 67762d63_aaf6_b79b_dbd2_3bc891aeae1f --> 27705a9d_afe9_57dd_8c97_e52d8a67d426 c1a47e5e_63aa_1ab2_abac_86e509f63e7c["table.ts"] 67762d63_aaf6_b79b_dbd2_3bc891aeae1f --> c1a47e5e_63aa_1ab2_abac_86e509f63e7c ee61f0b9_206c_6b7b_5671_49b96bcf3a63["all.ts"] ee61f0b9_206c_6b7b_5671_49b96bcf3a63 --> 67762d63_aaf6_b79b_dbd2_3bc891aeae1f style 67762d63_aaf6_b79b_dbd2_3bc891aeae1f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
import type { ColumnBuilderBaseConfig, ColumnBuilderRuntimeConfig, MakeColumnConfig } from '~/column-builder.ts';
import type { ColumnBaseConfig } from '~/column.ts';
import { entityKind } from '~/entity.ts';
import type { AnyGelTable } from '~/gel-core/table.ts';
import { GelColumn, GelColumnBuilder } from './common.ts';
export type GelRealBuilderInitial<TName extends string> = GelRealBuilder<{
name: TName;
dataType: 'number';
columnType: 'GelReal';
data: number;
driverParam: number;
enumValues: undefined;
}>;
export class GelRealBuilder<T extends ColumnBuilderBaseConfig<'number', 'GelReal'>> extends GelColumnBuilder<
T,
{ length: number | undefined }
> {
static override readonly [entityKind]: string = 'GelRealBuilder';
constructor(name: T['name'], length?: number) {
super(name, 'number', 'GelReal');
this.config.length = length;
}
/** @internal */
override build<TTableName extends string>(
table: AnyGelTable<{ name: TTableName }>,
): GelReal<MakeColumnConfig<T, TTableName>> {
return new GelReal<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);
}
}
export class GelReal<T extends ColumnBaseConfig<'number', 'GelReal'>> extends GelColumn<T> {
static override readonly [entityKind]: string = 'GelReal';
constructor(table: AnyGelTable<{ name: T['tableName'] }>, config: GelRealBuilder<T>['config']) {
super(table, config);
}
getSQLType(): string {
return 'real';
}
}
export function real(): GelRealBuilderInitial<''>;
export function real<TName extends string>(name: TName): GelRealBuilderInitial<TName>;
export function real(name?: string) {
return new GelRealBuilder(name ?? '');
}
Domain
Subdomains
Functions
Classes
Types
Imported By
Source
Frequently Asked Questions
What does real.ts do?
real.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, RelationalQuery subdomain.
What functions are defined in real.ts?
real.ts defines 1 function(s): real.
What does real.ts depend on?
real.ts imports 6 module(s): GelColumn, column-builder.ts, column.ts, common.ts, entity.ts, table.ts.
What files import real.ts?
real.ts is imported by 1 file(s): all.ts.
Where is real.ts in the architecture?
real.ts is located at drizzle-orm/src/gel-core/columns/real.ts (domain: DrizzleORM, subdomain: RelationalQuery, directory: drizzle-orm/src/gel-core/columns).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free