Home / Function/ on() — drizzle-orm Function Reference

on() — drizzle-orm Function Reference

Architecture documentation for the on() function in indexes.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  163c7d9d_f3da_3c5a_db58_432d9d5b96f4["on()"]
  01612b83_6b2d_b959_eac9_2da2cc980c14["IndexBuilderOn"]
  163c7d9d_f3da_3c5a_db58_432d9d5b96f4 -->|defined in| 01612b83_6b2d_b959_eac9_2da2cc980c14
  style 163c7d9d_f3da_3c5a_db58_432d9d5b96f4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/mysql-core/indexes.ts lines 39–41

	on(...columns: [IndexColumn, ...IndexColumn[]]): IndexBuilder {
		return new IndexBuilder(this.name, columns, this.unique);
	}

Domain

Subdomains

Frequently Asked Questions

What does on() do?
on() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/mysql-core/indexes.ts.
Where is on() defined?
on() is defined in drizzle-orm/src/mysql-core/indexes.ts at line 39.

Analyze Your Own Codebase

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

Try Supermodel Free