Home / File/ pg-common.ts — drizzle-orm Source File

pg-common.ts — drizzle-orm Source File

Architecture documentation for pg-common.ts, a typescript file in the drizzle-orm codebase. 10 imports, 9 dependents.

File typescript DrizzleORM DatabaseDrivers 10 imports 9 dependents 2 functions 1 classes

Entity Profile

Dependency Diagram

graph LR
  d133ab06_e39e_bce4_90ee_a55144ce75c2["pg-common.ts"]
  6e2e482d_9a2a_072f_6dfa_c6293c2f4648["neon-http-batch.test.ts"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> 6e2e482d_9a2a_072f_6dfa_c6293c2f4648
  e9c5db23_dc8f_4a33_356a_8f8fbacc4a0e["dockerode"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> e9c5db23_dc8f_4a33_356a_8f8fbacc4a0e
  690f7dfc_0aea_9ee8_d6e7_26bbb3689031["drizzle-orm"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> 690f7dfc_0aea_9ee8_d6e7_26bbb3689031
  cd72e94e_f67e_e318_4284_2525083b957f["neon"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> cd72e94e_f67e_e318_4284_2525083b957f
  7a947e11_4b82_a72e_a266_e039a8bd3ff1["neon-http"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> 7a947e11_4b82_a72e_a266_e039a8bd3ff1
  53497908_16e7_977d_e97d_7414884a88a6["pg-core"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> 53497908_16e7_977d_e97d_7414884a88a6
  249e672a_a0ca_539d_aeb8_1505bb753d14["get-port"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> 249e672a_a0ca_539d_aeb8_1505bb753d14
  de47b2dd_7ed5_08f6_5b8a_f44c9896ce49["uuid"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> de47b2dd_7ed5_08f6_5b8a_f44c9896ce49
  8d35eaf2_a542_cfd4_fa1a_fafca0f02686["vitest"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> 8d35eaf2_a542_cfd4_fa1a_fafca0f02686
  be4f1824_b255_ba95_9daf_35a679c997bf["utils"]
  d133ab06_e39e_bce4_90ee_a55144ce75c2 --> be4f1824_b255_ba95_9daf_35a679c997bf
  d27467f0_72cf_286d_a537_902fcaa2eddb["neon-http.test.ts"]
  d27467f0_72cf_286d_a537_902fcaa2eddb --> d133ab06_e39e_bce4_90ee_a55144ce75c2
  a4af9c99_7399_27a8_3a5e_94b319250783["neon-serverless.test.ts"]
  a4af9c99_7399_27a8_3a5e_94b319250783 --> d133ab06_e39e_bce4_90ee_a55144ce75c2
  32b18a19_4daf_0590_6caf_6ed6c0bfce80["node-postgres.test.ts"]
  32b18a19_4daf_0590_6caf_6ed6c0bfce80 --> d133ab06_e39e_bce4_90ee_a55144ce75c2
  567f439d_8bdf_9f45_8fc4_f141db7d67c1["pg-custom.test.ts"]
  567f439d_8bdf_9f45_8fc4_f141db7d67c1 --> d133ab06_e39e_bce4_90ee_a55144ce75c2
  style d133ab06_e39e_bce4_90ee_a55144ce75c2 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import Docker from 'dockerode';
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
import {
	and,
	arrayContained,
	arrayContains,
	arrayOverlaps,
	asc,
	avg,
	avgDistinct,
	count,
	countDistinct,
	eq,
	Equal,
	exists,
	getTableColumns,
	gt,
	gte,
	ilike,
	inArray,
	is,
	like,
	lt,
	max,
	min,
	not,
	notInArray,
	or,
	SQL,
	sql,
	SQLWrapper,
	sum,
	sumDistinct,
	TransactionRollbackError,
} from 'drizzle-orm';
import { authenticatedRole, crudPolicy, usersSync } from 'drizzle-orm/neon';
import type { NeonHttpDatabase } from 'drizzle-orm/neon-http';
import type { PgColumn, PgDatabase, PgQueryResultHKT } from 'drizzle-orm/pg-core';
import {
	alias,
	bigint,
	bigserial,
	boolean,
	char,
	cidr,
	date,
	doublePrecision,
	except,
	exceptAll,
	foreignKey,
	getMaterializedViewConfig,
	getTableConfig,
	getViewConfig,
	index,
	inet,
	integer,
	intersect,
	intersectAll,
	interval,
	json,
// ... (6459 more lines)

Domain

Subdomains

Classes

Dependencies

Frequently Asked Questions

What does pg-common.ts do?
pg-common.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 pg-common.ts?
pg-common.ts defines 2 function(s): createDockerDB, tests.
What does pg-common.ts depend on?
pg-common.ts imports 10 module(s): dockerode, drizzle-orm, get-port, neon, neon-http, neon-http-batch.test.ts, pg-core, utils, and 2 more.
What files import pg-common.ts?
pg-common.ts is imported by 9 file(s): neon-http.test.ts, neon-serverless.test.ts, node-postgres.test.ts, pg-custom.test.ts, pg-proxy.test.ts, pglite.test.ts, postgres-js.test.ts, vercel-pg.test.ts, and 1 more.
Where is pg-common.ts in the architecture?
pg-common.ts is located at integration-tests/tests/pg/pg-common.ts (domain: DrizzleORM, subdomain: DatabaseDrivers, directory: integration-tests/tests/pg).

Analyze Your Own Codebase

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

Try Supermodel Free