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

selectDistinctOn() — drizzle-orm Function Reference

Architecture documentation for the selectDistinctOn() function in db.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  927861bc_81ae_46e9_c8b8_1f8444803d6c["selectDistinctOn()"]
  7b170b6b_8109_4580_dc12_4da0d59d8d8d["PgDatabase"]
  927861bc_81ae_46e9_c8b8_1f8444803d6c -->|defined in| 7b170b6b_8109_4580_dc12_4da0d59d8d8d
  9373d797_a688_263a_ed31_d047e2450a06["with()"]
  9373d797_a688_263a_ed31_d047e2450a06 -->|calls| 927861bc_81ae_46e9_c8b8_1f8444803d6c
  99f2c80b_960e_3f9d_a9fe_c8c1b4967d81["withReplicas()"]
  99f2c80b_960e_3f9d_a9fe_c8c1b4967d81 -->|calls| 927861bc_81ae_46e9_c8b8_1f8444803d6c
  style 927861bc_81ae_46e9_c8b8_1f8444803d6c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/pg-core/db.ts lines 505–505

	selectDistinctOn(on: (PgColumn | SQLWrapper)[]): PgSelectBuilder<undefined>;

Domain

Subdomains

Frequently Asked Questions

What does selectDistinctOn() do?
selectDistinctOn() is a function in the drizzle-orm codebase, defined in drizzle-orm/src/pg-core/db.ts.
Where is selectDistinctOn() defined?
selectDistinctOn() is defined in drizzle-orm/src/pg-core/db.ts at line 505.
What calls selectDistinctOn()?
selectDistinctOn() is called by 2 function(s): with, withReplicas.

Analyze Your Own Codebase

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

Try Supermodel Free