Home / Type/ InferSelectModel Type — drizzle-orm Architecture

InferSelectModel Type — drizzle-orm Architecture

Architecture documentation for the InferSelectModel type/interface in table.ts from the drizzle-orm codebase.

Entity Profile

Dependency Diagram

graph TD
  7eae0e3a_655d_faa3_9c92_8cae1ca557dd["InferSelectModel"]
  ddbb35ab_7e67_d2b6_96ec_1f37678fcb67["table.ts"]
  7eae0e3a_655d_faa3_9c92_8cae1ca557dd -->|defined in| ddbb35ab_7e67_d2b6_96ec_1f37678fcb67
  style 7eae0e3a_655d_faa3_9c92_8cae1ca557dd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

drizzle-orm/src/table.ts lines 197–200

export type InferSelectModel<
	TTable extends Table,
	TConfig extends { dbColumnNames: boolean } = { dbColumnNames: false },
> = InferModelFromColumns<TTable['_']['columns'], 'select', TConfig>;

Frequently Asked Questions

What is the InferSelectModel type?
InferSelectModel is a type/interface in the drizzle-orm codebase, defined in drizzle-orm/src/table.ts.
Where is InferSelectModel defined?
InferSelectModel is defined in drizzle-orm/src/table.ts at line 197.

Analyze Your Own Codebase

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

Try Supermodel Free