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

common.ts — drizzle-orm Source File

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

File typescript DrizzleORM RelationalQuery 1 imports 1 dependents 1 functions

Entity Profile

Dependency Diagram

graph LR
  763e0363_0164_92c1_7cf4_a9348fdadbfe["common.ts"]
  8d35eaf2_a542_cfd4_fa1a_fafca0f02686["vitest"]
  763e0363_0164_92c1_7cf4_a9348fdadbfe --> 8d35eaf2_a542_cfd4_fa1a_fafca0f02686
  66244d8b_f6c8_7e4e_5409_4e7e6a4add95["pg.test.ts"]
  66244d8b_f6c8_7e4e_5409_4e7e6a4add95 --> 763e0363_0164_92c1_7cf4_a9348fdadbfe
  style 763e0363_0164_92c1_7cf4_a9348fdadbfe fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { afterAll, beforeAll, test } from 'vitest';

export interface DialectSuite {
	simpleIndex(context?: any): Promise<void>;
	vectorIndex(context?: any): Promise<void>;
	indexesToBeTriggered(context?: any): Promise<void>;
}

export const run = (
	suite: DialectSuite,
	beforeAllFn?: (context: any) => Promise<void>,
	afterAllFn?: (context: any) => Promise<void>,
) => {
	let context: any = {};
	beforeAll(beforeAllFn ? () => beforeAllFn(context) : () => {});
	test('index #1: simple index', () => suite.simpleIndex(context));
	test('index #2: vector index', () => suite.vectorIndex(context));
	test('index #3: fields that should be triggered on generate and not triggered on push', () =>
		suite.indexesToBeTriggered(context));
	afterAll(afterAllFn ? () => afterAllFn(context) : () => {});
};

Domain

Subdomains

Functions

Types

Dependencies

  • vitest

Frequently Asked Questions

What does common.ts do?
common.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain, RelationalQuery subdomain.
What functions are defined in common.ts?
common.ts defines 1 function(s): run.
What does common.ts depend on?
common.ts imports 1 module(s): vitest.
What files import common.ts?
common.ts is imported by 1 file(s): pg.test.ts.
Where is common.ts in the architecture?
common.ts is located at drizzle-kit/tests/indexes/common.ts (domain: DrizzleORM, subdomain: RelationalQuery, directory: drizzle-kit/tests/indexes).

Analyze Your Own Codebase

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

Try Supermodel Free