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
  4c47e6b1_5776_fce8_d098_b0e12f7f79d8["Index"]
  8777ea5d_4a78_587f_df18_57c7aa59b8a6["indexes.ts"]
  4c47e6b1_5776_fce8_d098_b0e12f7f79d8 -->|defined in| 8777ea5d_4a78_587f_df18_57c7aa59b8a6
  aaf44796_81e3_2c50_7613_49aa8f6ccdd1["constructor()"]
  4c47e6b1_5776_fce8_d098_b0e12f7f79d8 -->|method| aaf44796_81e3_2c50_7613_49aa8f6ccdd1

Relationship Graph

Source Code

drizzle-orm/src/sqlite-core/indexes.ts lines 58–70

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

	declare _: {
		brand: 'SQLiteIndex';
	};

	readonly config: IndexConfig & { table: SQLiteTable };

	constructor(config: IndexConfig, table: SQLiteTable) {
		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/sqlite-core/indexes.ts.
Where is Index defined?
Index is defined in drizzle-orm/src/sqlite-core/indexes.ts at line 58.

Analyze Your Own Codebase

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

Try Supermodel Free