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

array.ts — drizzle-orm Source File

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

File typescript 3 imports

Entity Profile

Dependency Diagram

graph LR
  49a5474b_72a9_87fb_1c4b_13411c5a6f09["array.ts"]
  25b05299_f48f_bceb_01ca_1343d330a8f7["utils.ts"]
  49a5474b_72a9_87fb_1c4b_13411c5a6f09 --> 25b05299_f48f_bceb_01ca_1343d330a8f7
  05f0a280_d0c9_693a_a4bf_83cc671012d2["column.ts"]
  49a5474b_72a9_87fb_1c4b_13411c5a6f09 --> 05f0a280_d0c9_693a_a4bf_83cc671012d2
  fa14e9c0_b73d_4bcb_463b_adf18df8a285["index.ts"]
  49a5474b_72a9_87fb_1c4b_13411c5a6f09 --> fa14e9c0_b73d_4bcb_463b_adf18df8a285
  style 49a5474b_72a9_87fb_1c4b_13411c5a6f09 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import { type Equal, Expect } from 'type-tests/utils.ts';
import type { Column } from '~/column.ts';
import { integer, pgTable } from '~/pg-core/index.ts';

{
	const table = pgTable('table', {
		a: integer('a').array().notNull(),
	});
	Expect<
		Equal<
			Column<
				{
					name: 'a';
					tableName: 'table';
					dataType: 'number';
					columnType: 'PgInteger';
					data: number;
					driverParam: string | number;
					notNull: false;
					hasDefault: false;
					enumValues: undefined;
					baseColumn: never;
					generated: undefined;
					identity: undefined;
					isPrimaryKey: false;
					isAutoincrement: false;
					hasRuntimeDefault: false;
				},
				{},
				{}
			>,
			typeof table['a']['_']['baseColumn']
		>
	>;
}

Dependencies

  • column.ts
  • index.ts
  • utils.ts

Frequently Asked Questions

What does array.ts do?
array.ts is a source file in the drizzle-orm codebase, written in typescript.
What does array.ts depend on?
array.ts imports 3 module(s): column.ts, index.ts, utils.ts.
Where is array.ts in the architecture?
array.ts is located at drizzle-orm/type-tests/pg/array.ts (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