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 f265b8e0_8c11_0dc5_3895_a9a09f511b37["real.ts"] 64ae061d_ed9a_c5f9_235a_3f31995a8d54["table.ts"] f265b8e0_8c11_0dc5_3895_a9a09f511b37 --> 64ae061d_ed9a_c5f9_235a_3f31995a8d54 a4c1e5cb_a206_4786_985b_0e0a35ddd536["common.ts"] f265b8e0_8c11_0dc5_3895_a9a09f511b37 --> a4c1e5cb_a206_4786_985b_0e0a35ddd536 f78ef1e1_d140_1e8a_3de5_d93a866c939f["SQLiteColumn"] f265b8e0_8c11_0dc5_3895_a9a09f511b37 --> f78ef1e1_d140_1e8a_3de5_d93a866c939f 2dc784c6_95e9_4e28_ec81_7caf4acbd426["column-builder.ts"] f265b8e0_8c11_0dc5_3895_a9a09f511b37 --> 2dc784c6_95e9_4e28_ec81_7caf4acbd426 05f0a280_d0c9_693a_a4bf_83cc671012d2["column.ts"] f265b8e0_8c11_0dc5_3895_a9a09f511b37 --> 05f0a280_d0c9_693a_a4bf_83cc671012d2 27705a9d_afe9_57dd_8c97_e52d8a67d426["entity.ts"] f265b8e0_8c11_0dc5_3895_a9a09f511b37 --> 27705a9d_afe9_57dd_8c97_e52d8a67d426 0bca2cbd_0e97_da69_ba34_0de360b77802["all.ts"] 0bca2cbd_0e97_da69_ba34_0de360b77802 --> f265b8e0_8c11_0dc5_3895_a9a09f511b37 style f265b8e0_8c11_0dc5_3895_a9a09f511b37 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 { AnySQLiteTable } from '../table.ts';
import { SQLiteColumn, SQLiteColumnBuilder } from './common.ts';
export type SQLiteRealBuilderInitial<TName extends string> = SQLiteRealBuilder<{
name: TName;
dataType: 'number';
columnType: 'SQLiteReal';
data: number;
driverParam: number;
enumValues: undefined;
}>;
export class SQLiteRealBuilder<T extends ColumnBuilderBaseConfig<'number', 'SQLiteReal'>>
extends SQLiteColumnBuilder<T>
{
static override readonly [entityKind]: string = 'SQLiteRealBuilder';
constructor(name: T['name']) {
super(name, 'number', 'SQLiteReal');
}
/** @internal */
override build<TTableName extends string>(
table: AnySQLiteTable<{ name: TTableName }>,
): SQLiteReal<MakeColumnConfig<T, TTableName>> {
return new SQLiteReal<MakeColumnConfig<T, TTableName>>(table, this.config as ColumnBuilderRuntimeConfig<any, any>);
}
}
export class SQLiteReal<T extends ColumnBaseConfig<'number', 'SQLiteReal'>> extends SQLiteColumn<T> {
static override readonly [entityKind]: string = 'SQLiteReal';
getSQLType(): string {
return 'real';
}
}
export function real(): SQLiteRealBuilderInitial<''>;
export function real<TName extends string>(name: TName): SQLiteRealBuilderInitial<TName>;
export function real(name?: string) {
return new SQLiteRealBuilder(name ?? '');
}
Domain
Subdomains
Functions
Classes
Types
Dependencies
- SQLiteColumn
- column-builder.ts
- column.ts
- common.ts
- entity.ts
- table.ts
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, SQLDialects 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): SQLiteColumn, 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/sqlite-core/columns/real.ts (domain: DrizzleORM, subdomain: SQLDialects, directory: drizzle-orm/src/sqlite-core/columns).
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free