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

seedService.ts — drizzle-orm Source File

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

File typescript DrizzleSeed 2 imports 2 dependents

Entity Profile

Dependency Diagram

graph LR
  aaa9a26b_a842_a4d1_a213_2cea0b822f37["seedService.ts"]
  e5cee001_0354_7e76_ef0a_06dca71dc8ce["Generators.ts"]
  aaa9a26b_a842_a4d1_a213_2cea0b822f37 --> e5cee001_0354_7e76_ef0a_06dca71dc8ce
  068455b6_0ea9_cdc1_8414_ef0ad089ef04["tables.ts"]
  aaa9a26b_a842_a4d1_a213_2cea0b822f37 --> 068455b6_0ea9_cdc1_8414_ef0ad089ef04
  0fabdd81_61c9_bb7c_7ddf_dde7a6071abc["index.ts"]
  0fabdd81_61c9_bb7c_7ddf_dde7a6071abc --> aaa9a26b_a842_a4d1_a213_2cea0b822f37
  cddca4ed_9295_2c5a_7eae_0e65031c57b0["SeedService.ts"]
  cddca4ed_9295_2c5a_7eae_0e65031c57b0 --> aaa9a26b_a842_a4d1_a213_2cea0b822f37
  style aaa9a26b_a842_a4d1_a213_2cea0b822f37 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { AbstractGenerator } from '../services/Generators.ts';
import type { Prettify } from './tables.ts';

export type TableGeneratorsType = {
	[columnName: string]: Prettify<
		{
			hasSelfRelation?: boolean | undefined;
			hasRelation?: boolean | undefined;
			pRNGSeed: number;
		} & GeneratePossibleGeneratorsColumnType
	>;
};

export type GeneratePossibleGeneratorsColumnType = {
	columnName: string;
	generator: AbstractGenerator<any> | undefined;
	isUnique: boolean;
	notNull: boolean;
	primary: boolean;
	generatedIdentityType?: 'always' | 'byDefault' | undefined;
	wasRefined: boolean;
	wasDefinedBefore: boolean;
	isCyclic: boolean;
};

export type GeneratePossibleGeneratorsTableType = Prettify<{
	tableName: string;
	count?: number;
	withCount?: number;
	withFromTable: {
		[withFromTableName: string]: {
			repeatedValuesCount:
				| number
				| { weight: number; count: number | number[] }[];
			weightedCountSeed?: number;
		};
	};
	// repeatedValuesCount?: number,
	// withFromTableName?: string,
	columnsPossibleGenerators: GeneratePossibleGeneratorsColumnType[];
}>;

export type RefinementsType = Prettify<{
	[tableName: string]: {
		count?: number;
		columns: { [columnName: string]: AbstractGenerator<{}> };
		with?: { [tableName: string]: number | { weight: number; count: number | number[] }[] };
	};
}>;

Domain

Dependencies

Frequently Asked Questions

What does seedService.ts do?
seedService.ts is a source file in the drizzle-orm codebase, written in typescript. It belongs to the DrizzleSeed domain.
What does seedService.ts depend on?
seedService.ts imports 2 module(s): Generators.ts, tables.ts.
What files import seedService.ts?
seedService.ts is imported by 2 file(s): SeedService.ts, index.ts.
Where is seedService.ts in the architecture?
seedService.ts is located at drizzle-seed/src/types/seedService.ts (domain: DrizzleSeed, directory: drizzle-seed/src/types).

Analyze Your Own Codebase

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

Try Supermodel Free