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

column.ts — drizzle-orm Source File

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

File typescript ValidationAdapters TypeMapping 10 imports 2 dependents 5 functions

Entity Profile

Dependency Diagram

graph LR
  56015c82_287b_9f6e_abba_3d7f471c1e5c["column.ts"]
  e68efb44_f7ca_358c_4cbd_8a5c35f8922d["constants.ts"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> e68efb44_f7ca_358c_4cbd_8a5c35f8922d
  0dcff89a_a60f_bf80_037e_d24dd39456e3["utils.ts"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> 0dcff89a_a60f_bf80_037e_d24dd39456e3
  7db9c77f_ae87_e998_1bfb_34e9384e09e8["isColumnType"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> 7db9c77f_ae87_e998_1bfb_34e9384e09e8
  cf473206_de02_b9d4_6152_24ac8addfcfa["isWithEnum"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> cf473206_de02_b9d4_6152_24ac8addfcfa
  26760edf_9a0c_0204_77e6_f8bffa96e354["typebox"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> 26760edf_9a0c_0204_77e6_f8bffa96e354
  690f7dfc_0aea_9ee8_d6e7_26bbb3689031["drizzle-orm"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> 690f7dfc_0aea_9ee8_d6e7_26bbb3689031
  93ed9350_daa0_6c21_81a6_ed6b2a48bbdf["mysql-core"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> 93ed9350_daa0_6c21_81a6_ed6b2a48bbdf
  53497908_16e7_977d_e97d_7414884a88a6["pg-core"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> 53497908_16e7_977d_e97d_7414884a88a6
  b4539857_26bc_b042_0719_5e529c80f1b4["singlestore-core"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> b4539857_26bc_b042_0719_5e529c80f1b4
  25248a9d_ba06_2b33_4421_8575da2f9c34["sqlite-core"]
  56015c82_287b_9f6e_abba_3d7f471c1e5c --> 25248a9d_ba06_2b33_4421_8575da2f9c34
  8dacc372_d6d5_e273_f9e6_3a10af9bc4a7["schema.ts"]
  8dacc372_d6d5_e273_f9e6_3a10af9bc4a7 --> 56015c82_287b_9f6e_abba_3d7f471c1e5c
  0dcff89a_a60f_bf80_037e_d24dd39456e3["utils.ts"]
  0dcff89a_a60f_bf80_037e_d24dd39456e3 --> 56015c82_287b_9f6e_abba_3d7f471c1e5c
  style 56015c82_287b_9f6e_abba_3d7f471c1e5c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { Kind, Type as t, TypeRegistry } from '@sinclair/typebox';
import type { StringOptions, TSchema, Type as typebox } from '@sinclair/typebox';
import type { Column, ColumnBaseConfig } from 'drizzle-orm';
import type {
	MySqlBigInt53,
	MySqlChar,
	MySqlDouble,
	MySqlFloat,
	MySqlInt,
	MySqlMediumInt,
	MySqlReal,
	MySqlSerial,
	MySqlSmallInt,
	MySqlText,
	MySqlTinyInt,
	MySqlVarChar,
	MySqlYear,
} from 'drizzle-orm/mysql-core';
import type {
	PgArray,
	PgBigInt53,
	PgBigSerial53,
	PgBinaryVector,
	PgChar,
	PgDoublePrecision,
	PgGeometry,
	PgGeometryObject,
	PgHalfVector,
	PgInteger,
	PgLineABC,
	PgLineTuple,
	PgPointObject,
	PgPointTuple,
	PgReal,
	PgSerial,
	PgSmallInt,
	PgSmallSerial,
	PgUUID,
	PgVarchar,
	PgVector,
} from 'drizzle-orm/pg-core';
import type {
	SingleStoreBigInt53,
	SingleStoreChar,
	SingleStoreDouble,
	SingleStoreFloat,
	SingleStoreInt,
	SingleStoreMediumInt,
	SingleStoreReal,
	SingleStoreSerial,
	SingleStoreSmallInt,
	SingleStoreText,
	SingleStoreTinyInt,
	SingleStoreVarChar,
	SingleStoreYear,
} from 'drizzle-orm/singlestore-core';
import type { SQLiteInteger, SQLiteReal, SQLiteText } from 'drizzle-orm/sqlite-core';
import { CONSTANTS } from './constants.ts';
import { isColumnType, isWithEnum } from './utils.ts';
import type { BufferSchema, JsonSchema } from './utils.ts';
// ... (255 more lines)

Subdomains

Dependencies

Frequently Asked Questions

What does column.ts do?
column.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the ValidationAdapters domain, TypeMapping subdomain.
What functions are defined in column.ts?
column.ts defines 5 function(s): bigintColumnToSchema, columnToSchema, mapEnumValues, numberColumnToSchema, stringColumnToSchema.
What does column.ts depend on?
column.ts imports 10 module(s): constants.ts, drizzle-orm, isColumnType, isWithEnum, mysql-core, pg-core, singlestore-core, sqlite-core, and 2 more.
What files import column.ts?
column.ts is imported by 2 file(s): schema.ts, utils.ts.
Where is column.ts in the architecture?
column.ts is located at drizzle-typebox/src/column.ts (domain: ValidationAdapters, subdomain: TypeMapping, directory: drizzle-typebox/src).

Analyze Your Own Codebase

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

Try Supermodel Free