Home / File/ dialect.ts — drizzle-orm Source File

dialect.ts — drizzle-orm Source File

Architecture documentation for dialect.ts, a typescript file in the drizzle-orm codebase. 20 imports, 2 dependents.

File typescript DrizzleORM SQLDialects 20 imports 2 dependents 1 classes

Entity Profile

Dependency Diagram

graph LR
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42["dialect.ts"]
  eb260b78_e826_4d83_9967_4a3bb3d4d983["timestamp.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> eb260b78_e826_4d83_9967_4a3bb3d4d983
  4c3cd201_d1ac_a9fb_a8aa_975b0f62f287["GelTimestamp"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> 4c3cd201_d1ac_a9fb_a8aa_975b0f62f287
  be86042a_e0e2_e322_228e_e182ac8bd699["view-base.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> be86042a_e0e2_e322_228e_e182ac8bd699
  257a76b8_a6d7_188d_c192_237373f7f9c0["view.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> 257a76b8_a6d7_188d_c192_237373f7f9c0
  8bd3ef32_4223_16b0_09cf_fce512f07634["alias.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> 8bd3ef32_4223_16b0_09cf_fce512f07634
  3766d874_812a_d152_3c15_0c39edd40b21["casing.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> 3766d874_812a_d152_3c15_0c39edd40b21
  05f0a280_d0c9_693a_a4bf_83cc671012d2["column.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> 05f0a280_d0c9_693a_a4bf_83cc671012d2
  27705a9d_afe9_57dd_8c97_e52d8a67d426["entity.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> 27705a9d_afe9_57dd_8c97_e52d8a67d426
  a633174a_152a_5e1c_73b0_aa56a1f1c3c5["errors.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> a633174a_152a_5e1c_73b0_aa56a1f1c3c5
  63414497_7c3c_fa30_3735_57e9e37ccc7c["index.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> 63414497_7c3c_fa30_3735_57e9e37ccc7c
  b4d094e3_ef5a_722a_3056_b29d2df38bcf["index.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> b4d094e3_ef5a_722a_3056_b29d2df38bcf
  035a2c62_254b_e601_6cb4_e30799787a12["select.types.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> 035a2c62_254b_e601_6cb4_e30799787a12
  c1a47e5e_63aa_1ab2_abac_86e509f63e7c["table.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> c1a47e5e_63aa_1ab2_abac_86e509f63e7c
  e4d6a0ab_9aa2_13a6_a2f1_58d94314c3f2["relations.ts"]
  6972d39c_a1ff_d9cf_1e99_15f684fd5e42 --> e4d6a0ab_9aa2_13a6_a2f1_58d94314c3f2
  style 6972d39c_a1ff_d9cf_1e99_15f684fd5e42 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { aliasedTable, aliasedTableColumn, mapColumnsInAliasedSQLToAlias, mapColumnsInSQLToAlias } from '~/alias.ts';
import { CasingCache } from '~/casing.ts';
import { Column } from '~/column.ts';
import { entityKind, is } from '~/entity.ts';
import { DrizzleError } from '~/errors.ts';
import { GelColumn, GelDecimal, GelJson, GelUUID } from '~/gel-core/columns/index.ts';
import type {
	AnyGelSelectQueryBuilder,
	GelDeleteConfig,
	GelInsertConfig,
	GelSelectJoinConfig,
	GelUpdateConfig,
} from '~/gel-core/query-builders/index.ts';
import type { GelSelectConfig, SelectedFieldsOrdered } from '~/gel-core/query-builders/select.types.ts';
import { GelTable } from '~/gel-core/table.ts';
import {
	type BuildRelationalQueryResult,
	type DBQueryConfig,
	getOperators,
	getOrderByOperators,
	Many,
	normalizeRelation,
	One,
	type Relation,
	type TableRelationalConfig,
	type TablesRelationalConfig,
} from '~/relations.ts';
import { and, eq, View } from '~/sql/index.ts';
import {
	type DriverValueEncoder,
	type Name,
	Param,
	type QueryTypingsValue,
	type QueryWithTypings,
	SQL,
	sql,
	type SQLChunk,
} from '~/sql/sql.ts';
import { Subquery } from '~/subquery.ts';
import { getTableName, getTableUniqueName, Table } from '~/table.ts';
import { type Casing, orderSelectedFields, type UpdateSet } from '~/utils.ts';
import { ViewBaseConfig } from '~/view-common.ts';
import { GelTimestamp } from './columns/timestamp.ts';
import { GelViewBase } from './view-base.ts';
import type { GelMaterializedView } from './view.ts';

export interface GelDialectConfig {
	casing?: Casing;
}

export class GelDialect {
	static readonly [entityKind]: string = 'GelDialect';

	/** @internal */
	readonly casing: CasingCache;

	constructor(config?: GelDialectConfig) {
		this.casing = new CasingCache(config?.casing);
	}

// ... (1377 more lines)

Domain

Subdomains

Classes

Dependencies

Frequently Asked Questions

What does dialect.ts do?
dialect.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, SQLDialects subdomain.
What does dialect.ts depend on?
dialect.ts imports 20 module(s): GelTimestamp, alias.ts, casing.ts, column.ts, entity.ts, errors.ts, index.ts, index.ts, and 12 more.
What files import dialect.ts?
dialect.ts is imported by 2 file(s): query.ts, session.ts.
Where is dialect.ts in the architecture?
dialect.ts is located at drizzle-orm/src/gel-core/dialect.ts (domain: DrizzleORM, subdomain: SQLDialects, directory: drizzle-orm/src/gel-core).

Analyze Your Own Codebase

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

Try Supermodel Free