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

tables.ts — drizzle-orm Source File

Architecture documentation for tables.ts, a typescript file in the drizzle-orm codebase. 11 imports, 7 dependents.

File typescript DrizzleORM DatabaseDrivers 11 imports 7 dependents 13 functions

Entity Profile

Dependency Diagram

graph LR
  998b0a13_62af_9408_d100_2bb61b49b6b9["tables.ts"]
  554a7c60_d7ae_c68e_f0c9_e3a02afcefb7["db.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  3f58c8f4_b305_acb0_933a_0541231c5109["node:crypto"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 3f58c8f4_b305_acb0_933a_0541231c5109
  25b05299_f48f_bceb_01ca_1343d330a8f7["utils.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 25b05299_f48f_bceb_01ca_1343d330a8f7
  9d8cc145_835b_8147_2ea5_b7b5383ae775["zod"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 9d8cc145_835b_8147_2ea5_b7b5383ae775
  fa14e9c0_b73d_4bcb_463b_adf18df8a285["index.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> fa14e9c0_b73d_4bcb_463b_adf18df8a285
  21a21ead_8888_1bcd_282e_0f2097d19536["schema.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 21a21ead_8888_1bcd_282e_0f2097d19536
  56a99b7e_a642_4ea2_af0b_c88ee3a3dc3c["view.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 56a99b7e_a642_4ea2_af0b_c88ee3a3dc3c
  5c46beaf_8b59_d2e3_def3_8af6daf1fccd["index.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 5c46beaf_8b59_d2e3_def3_8af6daf1fccd
  be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd["sql.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd
  1fd6ac27_a0fb_a054_a358_c8766c3fcbd7["table.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 1fd6ac27_a0fb_a054_a358_c8766c3fcbd7
  ecce3253_1e75_a87f_27b3_ca87e81a3024["utils.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> ecce3253_1e75_a87f_27b3_ca87e81a3024
  17a58b86_c6ea_9812_f57c_197b3715509b["aliased-table.ts"]
  17a58b86_c6ea_9812_f57c_197b3715509b --> 998b0a13_62af_9408_d100_2bb61b49b6b9
  7b23a2e9_e7ed_2c2e_cfeb_67f68bab7871["delete.ts"]
  7b23a2e9_e7ed_2c2e_cfeb_67f68bab7871 --> 998b0a13_62af_9408_d100_2bb61b49b6b9
  69561396_7f36_af88_2d2b_7036d4d8de51["insert.ts"]
  69561396_7f36_af88_2d2b_7036d4d8de51 --> 998b0a13_62af_9408_d100_2bb61b49b6b9
  style 998b0a13_62af_9408_d100_2bb61b49b6b9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import crypto from 'node:crypto';
import type { Equal } from 'type-tests/utils.ts';
import { Expect } from 'type-tests/utils.ts';
import { z } from 'zod';
import {
	bigint,
	bigserial,
	bit,
	boolean,
	char,
	check,
	cidr,
	customType,
	date,
	decimal,
	doublePrecision,
	foreignKey,
	geometry,
	halfvec,
	index,
	inet,
	integer,
	json,
	jsonb,
	line,
	macaddr,
	macaddr8,
	numeric,
	type PgColumn,
	pgEnum,
	pgTable,
	type PgTableWithColumns,
	point,
	primaryKey,
	real,
	serial,
	smallint,
	smallserial,
	sparsevec,
	text,
	time,
	timestamp,
	uniqueIndex,
	uuid,
	varchar,
	vector,
} from '~/pg-core/index.ts';
import { pgSchema } from '~/pg-core/schema.ts';
import {
	pgMaterializedView,
	type PgMaterializedViewWithSelection,
	pgView,
	type PgViewWithSelection,
} from '~/pg-core/view.ts';
import { eq, gt } from '~/sql/expressions/index.ts';
import { sql } from '~/sql/sql.ts';
import type { InferInsertModel, InferSelectModel } from '~/table.ts';
import type { Simplify } from '~/utils.ts';
import { db } from './db.ts';

// ... (1417 more lines)

Domain

Subdomains

Dependencies

  • db.ts
  • index.ts
  • index.ts
  • node:crypto
  • schema.ts
  • sql.ts
  • table.ts
  • utils.ts
  • utils.ts
  • view.ts
  • zod

Frequently Asked Questions

What does tables.ts do?
tables.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, DatabaseDrivers subdomain.
What functions are defined in tables.ts?
tables.ts defines 13 function(s): cities, cities2, citiesCustom, customTextOptional.dataType, customTextOptional.fromDriver, customTextOptional.toDriver, customTextRequired.dataType, customTextRequired.fromDriver, customTextRequired.toDriver, getUsersTable, and 3 more.
What does tables.ts depend on?
tables.ts imports 11 module(s): db.ts, index.ts, index.ts, node:crypto, schema.ts, sql.ts, table.ts, utils.ts, and 3 more.
What files import tables.ts?
tables.ts is imported by 7 file(s): aliased-table.ts, delete.ts, insert.ts, other.ts, select.ts, set-operators.ts, update.ts.
Where is tables.ts in the architecture?
tables.ts is located at drizzle-orm/type-tests/pg/tables.ts (domain: DrizzleORM, subdomain: DatabaseDrivers, directory: drizzle-orm/type-tests/pg).

Analyze Your Own Codebase

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

Try Supermodel Free