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

db.ts — drizzle-orm Source File

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

File typescript DrizzleORM 2 imports 11 dependents

Entity Profile

Dependency Diagram

graph LR
  554a7c60_d7ae_c68e_f0c9_e3a02afcefb7["db.ts"]
  0d277acf_0d68_9daf_8724_642232a89719["pg"]
  554a7c60_d7ae_c68e_f0c9_e3a02afcefb7 --> 0d277acf_0d68_9daf_8724_642232a89719
  b5ed0e87_40a4_1643_f027_4ff3496c71c0["index.ts"]
  554a7c60_d7ae_c68e_f0c9_e3a02afcefb7 --> b5ed0e87_40a4_1643_f027_4ff3496c71c0
  c3df7f19_34b8_cab0_0f55_6f3cdeb4c07e["count.ts"]
  c3df7f19_34b8_cab0_0f55_6f3cdeb4c07e --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  7b23a2e9_e7ed_2c2e_cfeb_67f68bab7871["delete.ts"]
  7b23a2e9_e7ed_2c2e_cfeb_67f68bab7871 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  b1ee4aa5_d932_64da_b9b9_2e3c716bd8d2["generated-columns.ts"]
  b1ee4aa5_d932_64da_b9b9_2e3c716bd8d2 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  69561396_7f36_af88_2d2b_7036d4d8de51["insert.ts"]
  69561396_7f36_af88_2d2b_7036d4d8de51 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  adc1b0ad_d431_8b3d_a104_67600e6efb10["other.ts"]
  adc1b0ad_d431_8b3d_a104_67600e6efb10 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  e0590ec9_eee4_a25d_2bbf_54c94ac5420f["select.ts"]
  e0590ec9_eee4_a25d_2bbf_54c94ac5420f --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  6d5bdc53_9ccf_5949_51a4_d37a063b2043["set-operators.ts"]
  6d5bdc53_9ccf_5949_51a4_d37a063b2043 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  01b84377_5b28_19cc_6443_ed107c3791ed["subquery.ts"]
  01b84377_5b28_19cc_6443_ed107c3791ed --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  998b0a13_62af_9408_d100_2bb61b49b6b9["tables.ts"]
  998b0a13_62af_9408_d100_2bb61b49b6b9 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  60a03814_2a9b_3c6b_eb8c_0bf124b68d39["update.ts"]
  60a03814_2a9b_3c6b_eb8c_0bf124b68d39 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  a4706dce_ae84_706c_8ff7_845a0df354a1["with.ts"]
  a4706dce_ae84_706c_8ff7_845a0df354a1 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  style 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import pg from 'pg';
import { drizzle } from '~/node-postgres/index.ts';

const { Client } = pg;

export const db = drizzle(new Client());

Domain

Dependencies

  • index.ts
  • pg

Frequently Asked Questions

What does db.ts do?
db.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain.
What does db.ts depend on?
db.ts imports 2 module(s): index.ts, pg.
What files import db.ts?
db.ts is imported by 11 file(s): count.ts, delete.ts, generated-columns.ts, insert.ts, other.ts, select.ts, set-operators.ts, subquery.ts, and 3 more.
Where is db.ts in the architecture?
db.ts is located at drizzle-orm/type-tests/pg/db.ts (domain: DrizzleORM, 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