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

other.ts — drizzle-orm Source File

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

Entity Profile

Dependency Diagram

graph LR
  adc1b0ad_d431_8b3d_a104_67600e6efb10["other.ts"]
  554a7c60_d7ae_c68e_f0c9_e3a02afcefb7["db.ts"]
  adc1b0ad_d431_8b3d_a104_67600e6efb10 --> 554a7c60_d7ae_c68e_f0c9_e3a02afcefb7
  998b0a13_62af_9408_d100_2bb61b49b6b9["tables.ts"]
  adc1b0ad_d431_8b3d_a104_67600e6efb10 --> 998b0a13_62af_9408_d100_2bb61b49b6b9
  4d7e77e2_6504_f5a5_4a03_156acfe671d4["users"]
  adc1b0ad_d431_8b3d_a104_67600e6efb10 --> 4d7e77e2_6504_f5a5_4a03_156acfe671d4
  0d277acf_0d68_9daf_8724_642232a89719["pg"]
  adc1b0ad_d431_8b3d_a104_67600e6efb10 --> 0d277acf_0d68_9daf_8724_642232a89719
  5c46beaf_8b59_d2e3_def3_8af6daf1fccd["index.ts"]
  adc1b0ad_d431_8b3d_a104_67600e6efb10 --> 5c46beaf_8b59_d2e3_def3_8af6daf1fccd
  be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd["sql.ts"]
  adc1b0ad_d431_8b3d_a104_67600e6efb10 --> be483a7f_d5d7_7a9b_9a13_44a4a6aafbbd
  25b05299_f48f_bceb_01ca_1343d330a8f7["utils.ts"]
  adc1b0ad_d431_8b3d_a104_67600e6efb10 --> 25b05299_f48f_bceb_01ca_1343d330a8f7
  style adc1b0ad_d431_8b3d_a104_67600e6efb10 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { QueryResult } from 'pg';
import { eq, inArray } from '~/sql/expressions/index.ts';
import { sql } from '~/sql/sql.ts';

import type { Equal } from 'type-tests/utils.ts';
import { Expect } from 'type-tests/utils.ts';
import { db } from './db.ts';
import { users } from './tables.ts';

const rawQuery = await db.execute(
	sql`select ${users.id}, ${users.class} from ${users} where ${inArray(users.id, [1, 2, 3])} and ${
		eq(users.class, 'A')
	}`,
);

Expect<Equal<QueryResult<Record<string, unknown>>, typeof rawQuery>>;

Domain

Dependencies

Frequently Asked Questions

What does other.ts do?
other.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleORM domain.
What does other.ts depend on?
other.ts imports 7 module(s): db.ts, index.ts, pg, sql.ts, tables.ts, users, utils.ts.
Where is other.ts in the architecture?
other.ts is located at drizzle-orm/type-tests/pg/other.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