Home / Class/ Index Class — drizzle-orm Architecture

Index Class — drizzle-orm Architecture

Architecture documentation for the Index class in indexes.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  9f120790_37b5_fcab_02e5_bc70c79ee3af["Index"]
  8e96cfe7_b09e_acd6_1e9a_cf73dc90a16f["indexes.ts"]
  9f120790_37b5_fcab_02e5_bc70c79ee3af -->|defined in| 8e96cfe7_b09e_acd6_1e9a_cf73dc90a16f
  2f8be46d_72ac_3f09_7c42_437e7d54a1c7["constructor()"]
  9f120790_37b5_fcab_02e5_bc70c79ee3af -->|method| 2f8be46d_72ac_3f09_7c42_437e7d54a1c7

Relationship Graph

Source Code

drizzle-orm/src/gel-core/indexes.ts lines 239–247

export class Index {
	static readonly [entityKind]: string = 'GelIndex';

	readonly config: IndexConfig & { table: GelTable };

	constructor(config: IndexConfig, table: GelTable) {
		this.config = { ...config, table };
	}
}

Domain

Frequently Asked Questions

What is the Index class?
Index is a class in the drizzle-orm codebase, defined in drizzle-orm/src/gel-core/indexes.ts.
Where is Index defined?
Index is defined in drizzle-orm/src/gel-core/indexes.ts at line 239.

Analyze Your Own Codebase

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

Try Supermodel Free